pub enum HwIdError {
NotFound,
Malformed(String),
}
Expand description
Possible failure cases for get_id().
Variants§
NotFound
Could not detect a hardware id. This might be caused by a misconfigured system or by this feature not being supported by the system or platform.
Malformed(String)
Found a putative HWID, but something was wrong with
it. The String
argument contains a path or other
identifier at which the HWID was found. This will
usually indicate something is really wrong with the
system.
Trait Implementations§
Source§impl Error for HwIdError
impl Error for HwIdError
1.30.0 · 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 HwIdError
impl RefUnwindSafe for HwIdError
impl Send for HwIdError
impl Sync for HwIdError
impl Unpin for HwIdError
impl UnwindSafe for HwIdError
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