[][src]Struct w5500::MacAddress

pub struct MacAddress {
    pub address: [u8; 6],
}

MAC address struct. Represents a MAC address as a u8 array of length 6. Can be instantiated with MacAddress::new

Fields

address: [u8; 6]

Implementations

impl MacAddress[src]

pub fn new(a0: u8, a1: u8, a2: u8, a3: u8, a4: u8, a5: u8) -> MacAddress[src]

Instantiate a new MAC address with u8s for each address fragment

Trait Implementations

impl Clone for MacAddress[src]

impl Copy for MacAddress[src]

impl Debug for MacAddress[src]

impl Default for MacAddress[src]

impl Display for MacAddress[src]

fn fmt(&self, f: &mut Formatter) -> Result[src]

String formatter for MAC addresses, useful for debugging output

impl PartialEq<MacAddress> for MacAddress[src]

impl PartialOrd<MacAddress> for MacAddress[src]

impl StructuralPartialEq for MacAddress[src]

Auto Trait Implementations

impl Send for MacAddress

impl Sync for MacAddress

impl Unpin for MacAddress

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.