pub enum MalformedStructureError {
BadSize(u32, u8),
UnterminatedStrings(u32),
InvalidStringIndex(InfoType, u16, u8),
InvalidSlice(TryFromSliceError),
InvalidFormattedSectionLength(InfoType, u16, &'static str, u8),
InvalidProcessorFamily,
}Expand description
Failure type for trying to decode the SMBIOS Structures iterator into the Structure variant type.
Variants§
BadSize(u32, u8)
The SMBIOS structure exceeds the end of the memory buffer given to the EntryPoint::structures method.
UnterminatedStrings(u32)
The SMBIOS structure contains an unterminated strings section.
InvalidStringIndex(InfoType, u16, u8)
The SMBIOS structure contains an invalid string index.
InvalidSlice(TryFromSliceError)
This error returned when a conversion from a slice to an array fails.
InvalidFormattedSectionLength(InfoType, u16, &'static str, u8)
The SMBIOS structure formatted section length does not correspond to SMBIOS reference specification
InvalidProcessorFamily
The SMBIOS structure contains an invalid processor family
Trait Implementations§
source§impl Debug for MalformedStructureError
impl Debug for MalformedStructureError
source§impl Display for MalformedStructureError
impl Display for MalformedStructureError
source§impl Fail for MalformedStructureError
impl Fail for MalformedStructureError
source§fn cause(&self) -> Option<&dyn Fail>
fn cause(&self) -> Option<&dyn Fail>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
source§fn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace carried by this failure, if it
carries one. Read moresource§impl From<DecodingError> for MalformedStructureError
impl From<DecodingError> for MalformedStructureError
source§fn from(_: DecodingError) -> Self
fn from(_: DecodingError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for MalformedStructureError
impl Send for MalformedStructureError
impl Sync for MalformedStructureError
impl Unpin for MalformedStructureError
impl UnwindSafe for MalformedStructureError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more