Enum pnet::util::ParseMacAddrErr
source · pub enum ParseMacAddrErr {
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 ParseMacAddrErr
impl Clone for ParseMacAddrErr
source§fn clone(&self) -> ParseMacAddrErr
fn clone(&self) -> ParseMacAddrErr
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 ParseMacAddrErr
impl Debug for ParseMacAddrErr
source§impl Display for ParseMacAddrErr
impl Display for ParseMacAddrErr
source§impl Error for ParseMacAddrErr
impl Error for ParseMacAddrErr
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<ParseMacAddrErr> for ParseMacAddrErr
impl PartialEq<ParseMacAddrErr> for ParseMacAddrErr
source§fn eq(&self, other: &ParseMacAddrErr) -> bool
fn eq(&self, other: &ParseMacAddrErr) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ParseMacAddrErr
impl Eq for ParseMacAddrErr
impl StructuralEq for ParseMacAddrErr
impl StructuralPartialEq for ParseMacAddrErr
Auto Trait Implementations§
impl RefUnwindSafe for ParseMacAddrErr
impl Send for ParseMacAddrErr
impl Sync for ParseMacAddrErr
impl Unpin for ParseMacAddrErr
impl UnwindSafe for ParseMacAddrErr
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