Struct otter_api_tests::imports::nix::sys::socket::LinkAddr[]

pub struct LinkAddr(pub sockaddr_ll);

Hardware Address

Implementations

impl LinkAddr

pub fn family(&self) -> AddressFamily

Always AF_PACKET

pub fn protocol(&self) -> u16

Physical-layer protocol

pub fn ifindex(&self) -> usize

Interface number

pub fn hatype(&self) -> u16

ARP hardware type

pub fn pkttype(&self) -> u8

Packet type

pub fn halen(&self) -> usize

Length of MAC address

pub fn addr(&self) -> [u8; 6]

Physical-layer address (MAC)

Trait Implementations

impl Clone for LinkAddr

impl Copy for LinkAddr

impl Debug for LinkAddr

impl Display for LinkAddr

impl Eq for LinkAddr

impl Hash for LinkAddr

impl PartialEq<LinkAddr> for LinkAddr

impl StructuralEq for LinkAddr

impl StructuralPartialEq for LinkAddr

Auto Trait Implementations

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> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Any + Send + Sync

impl<A> DynCastExt for A

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,