pub enum SMBiosStringError {
FieldOutOfBounds,
InvalidStringNumber(u8),
Utf8(FromUtf8Error),
}
Expand description
§SMBiosStringError
An SMBIOS String retrival error
Variants§
FieldOutOfBounds
The structure’s field is out of bounds of the formatted portion of the SMBIOS structure
InvalidStringNumber(u8)
The given string number was outside the range of the SMBIOS structure’s string-set
Utf8(FromUtf8Error)
UTF8 parsing error
Trait Implementations§
Source§impl Debug for SMBiosStringError
impl Debug for SMBiosStringError
Source§impl Display for SMBiosStringError
impl Display for SMBiosStringError
Source§impl Error for SMBiosStringError
impl Error for SMBiosStringError
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()
Source§impl From<FromUtf8Error> for SMBiosStringError
impl From<FromUtf8Error> for SMBiosStringError
Source§fn from(err: FromUtf8Error) -> SMBiosStringError
fn from(err: FromUtf8Error) -> SMBiosStringError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SMBiosStringError
impl RefUnwindSafe for SMBiosStringError
impl Send for SMBiosStringError
impl Sync for SMBiosStringError
impl Unpin for SMBiosStringError
impl UnwindSafe for SMBiosStringError
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