pub enum MalformedStructureError {
BadSize(u32, u8),
UnterminatedStrings(u32),
InvalidStringIndex(InfoType, u16, u8),
InvalidSlice(TryFromSliceError),
InvalidFormattedSectionLength(InfoType, u16, &'static str, u8),
}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
Trait Implementations§
Source§impl Debug for MalformedStructureError
impl Debug for MalformedStructureError
Source§impl Display for MalformedStructureError
impl Display for MalformedStructureError
Source§impl Error for MalformedStructureError
Available on crate feature std only.
impl Error for MalformedStructureError
Available on crate feature
std only.Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for MalformedStructureError
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