Enum pnet::util::ParseMacAddrErr [] [src]

pub enum ParseMacAddrErr {
    TooManyComponents,
    TooFewComponents,
    InvalidComponent,
}

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

Derived Implementations

impl Clone for ParseMacAddrErr
[src]

fn clone(&self) -> ParseMacAddrErr

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Eq for ParseMacAddrErr
[src]

impl PartialEq for ParseMacAddrErr
[src]

fn eq(&self, __arg_0: &ParseMacAddrErr) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, other: &Rhs) -> bool
1.0.0

This method tests for !=.

impl Debug for ParseMacAddrErr
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Copy for ParseMacAddrErr
[src]