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
sourceimpl Clone for ParseMacAddrErr
impl Clone for ParseMacAddrErr
sourcefn clone(&self) -> ParseMacAddrErr
fn clone(&self) -> ParseMacAddrErr
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ParseMacAddrErr
impl Debug for ParseMacAddrErr
sourceimpl Display for ParseMacAddrErr
impl Display for ParseMacAddrErr
sourceimpl Error for ParseMacAddrErr
impl Error for ParseMacAddrErr
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl PartialEq<ParseMacAddrErr> for ParseMacAddrErr
impl PartialEq<ParseMacAddrErr> for ParseMacAddrErr
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more