Enum default_net::mac::ParseMacAddrError
source · pub enum ParseMacAddrError {
TooManyComponents,
TooFewComponents,
InvalidComponent,
}
Expand description
Represents an error which occurred whilst parsing a MAC address
Variants§
TooManyComponents
The MAC address has too many components, eg. 00:11:22:33:44:55:66
TooFewComponents
The MAC address has too few components, eg. 00:11
InvalidComponent
One of the components contains an invalid value, eg. 00:GG:22:33:44:55
Trait Implementations§
source§impl Clone for ParseMacAddrError
impl Clone for ParseMacAddrError
source§fn clone(&self) -> ParseMacAddrError
fn clone(&self) -> ParseMacAddrError
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 ParseMacAddrError
impl Debug for ParseMacAddrError
source§impl Display for ParseMacAddrError
impl Display for ParseMacAddrError
source§impl Error for ParseMacAddrError
impl Error for ParseMacAddrError
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 PartialEq for ParseMacAddrError
impl PartialEq for ParseMacAddrError
source§fn eq(&self, other: &ParseMacAddrError) -> bool
fn eq(&self, other: &ParseMacAddrError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ParseMacAddrError
impl Eq for ParseMacAddrError
impl StructuralPartialEq for ParseMacAddrError
Auto Trait Implementations§
impl RefUnwindSafe for ParseMacAddrError
impl Send for ParseMacAddrError
impl Sync for ParseMacAddrError
impl Unpin for ParseMacAddrError
impl UnwindSafe for ParseMacAddrError
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