[][src]Enum dpdk_unix::memory_information::MemoryInformationParseError

pub enum MemoryInformationParseError {
    CouldNotOpenFile(Error),
    CouldNotParseMemoryInformationValue {
        zero_based_line_number: usize,
        memory_information_name: MemoryInformationName,
    },
    CouldNotParseAsUtf8 {
        zero_based_line_number: usize,
        memory_information_name: MemoryInformationName,
        bad_value: Box<[u8]>,
        cause: Utf8Error,
    },
    CouldNotParseMemoryInformationValueTrimmed {
        zero_based_line_number: usize,
        memory_information_name: MemoryInformationName,
        bad_value: String,
    },
    CouldNotParseMemoryInformationValueAsU64 {
        zero_based_line_number: usize,
        memory_information_name: MemoryInformationName,
        bad_value: String,
        cause: ParseIntError,
    },
    DuplicateMemoryInformation {
        zero_based_line_number: usize,
        memory_information_name: MemoryInformationName,
        new_value: u64,
    },
}

Errors possible when parsing memory statistics.

Variants

CouldNotOpenFile(Error)

Could not open a file of memory statistics.

CouldNotParseMemoryInformationValue

Could not parse a memory statistic.

Fields of CouldNotParseMemoryInformationValue

zero_based_line_number: usize

Zero-based line number in the file the error occurred at.

memory_information_name: MemoryInformationName

Memory item it occurred for.

CouldNotParseAsUtf8

Could not parse a memory statistic as a UTF-8 string.

Fields of CouldNotParseAsUtf8

zero_based_line_number: usize

Zero-based line number in the file the error occurred at.

memory_information_name: MemoryInformationName

Memory item it occurred for.

bad_value: Box<[u8]>

Bad value.

cause: Utf8Error

Cause.

CouldNotParseMemoryInformationValueTrimmed

Could not parse a memory statistic (trimmed).

Fields of CouldNotParseMemoryInformationValueTrimmed

zero_based_line_number: usize

Zero-based line number in the file the error occurred at.

memory_information_name: MemoryInformationName

Memory item it occurred for.

bad_value: String

Bad value.

CouldNotParseMemoryInformationValueAsU64

Could not parse a memory statistic as a u64 value.

Fields of CouldNotParseMemoryInformationValueAsU64

zero_based_line_number: usize

Zero-based line number in the file the error occurred at.

memory_information_name: MemoryInformationName

Memory item it occurred for.

bad_value: String

Bad value.

cause: ParseIntError

Underlying parse error.

DuplicateMemoryInformation

Could not parse a memory statistic because it was a duplicate.

Fields of DuplicateMemoryInformation

zero_based_line_number: usize

Zero-based line number in the file the error occurred at.

memory_information_name: MemoryInformationName

Memory item it occurred for.

new_value: u64

New value.

Trait Implementations

impl From<Error> for MemoryInformationParseError[src]

impl Debug for MemoryInformationParseError[src]

impl Display for MemoryInformationParseError[src]

impl Error for MemoryInformationParseError[src]

fn description(&self) -> &str
1.0.0
[src]

This method is soft-deprecated. Read more

fn cause(&self) -> Option<&dyn Error>
1.0.0
[src]

Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

The lower-level cause of this error, if any. Read more

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]