pub enum MachineIdError {
WrongLength {
len: usize,
},
NotLowercaseHex {
position: usize,
},
}Expand description
Why a string is not a machine id.
Variants§
WrongLength
The value is not exactly MachineId::HEX_LEN bytes long.
NotLowercaseHex
The byte at position is not a lowercase hex digit.
Trait Implementations§
Source§impl Clone for MachineIdError
impl Clone for MachineIdError
Source§impl Debug for MachineIdError
impl Debug for MachineIdError
Source§impl Display for MachineIdError
impl Display for MachineIdError
impl Eq for MachineIdError
Source§impl Error for MachineIdError
impl Error for MachineIdError
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()
Source§impl PartialEq for MachineIdError
impl PartialEq for MachineIdError
impl StructuralPartialEq for MachineIdError
Auto Trait Implementations§
impl Freeze for MachineIdError
impl RefUnwindSafe for MachineIdError
impl Send for MachineIdError
impl Sync for MachineIdError
impl Unpin for MachineIdError
impl UnsafeUnpin for MachineIdError
impl UnwindSafe for MachineIdError
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