Enum smbioslib::strings::SMBiosStringError
source · [−]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
sourceimpl Debug for SMBiosStringError
impl Debug for SMBiosStringError
sourceimpl Display for SMBiosStringError
impl Display for SMBiosStringError
sourceimpl Error for SMBiosStringError
impl Error for SMBiosStringError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl From<FromUtf8Error> for SMBiosStringError
impl From<FromUtf8Error> for SMBiosStringError
sourcefn from(err: FromUtf8Error) -> SMBiosStringError
fn from(err: FromUtf8Error) -> SMBiosStringError
Converts to this type from the input type.
sourceimpl Serialize for SMBiosStringError
impl Serialize for SMBiosStringError
Auto Trait Implementations
impl RefUnwindSafe for SMBiosStringError
impl Send for SMBiosStringError
impl Sync for SMBiosStringError
impl Unpin for SMBiosStringError
impl UnwindSafe for SMBiosStringError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more