Enum mac_address::MacParseError
source · pub enum MacParseError {
InvalidDigit,
InvalidLength,
}
Expand description
An error that may occur when parsing a MAC address string.
Variants§
InvalidDigit
Parsing of the MAC address contained an invalid digit.
InvalidLength
The MAC address did not have the correct length.
Trait Implementations§
source§impl Clone for MacParseError
impl Clone for MacParseError
source§fn clone(&self) -> MacParseError
fn clone(&self) -> MacParseError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for MacParseError
impl Debug for MacParseError
source§impl Display for MacParseError
impl Display for MacParseError
source§impl Error for MacParseError
impl Error for MacParseError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 Hash for MacParseError
impl Hash for MacParseError
source§impl PartialEq<MacParseError> for MacParseError
impl PartialEq<MacParseError> for MacParseError
source§fn eq(&self, other: &MacParseError) -> bool
fn eq(&self, other: &MacParseError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for MacParseError
impl Eq for MacParseError
impl StructuralEq for MacParseError
impl StructuralPartialEq for MacParseError
Auto Trait Implementations§
impl RefUnwindSafe for MacParseError
impl Send for MacParseError
impl Sync for MacParseError
impl Unpin for MacParseError
impl UnwindSafe for MacParseError
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