Struct nix::sys::socket::LinkAddr [−][src]
pub struct LinkAddr(pub sockaddr_ll);
Hardware Address
Methods
impl LinkAddr[src]
impl LinkAddrpub fn family(&self) -> AddressFamily[src]
pub fn family(&self) -> AddressFamilyAlways AF_PACKET
pub fn protocol(&self) -> u16[src]
pub fn protocol(&self) -> u16Physical-layer protocol
pub fn ifindex(&self) -> usize[src]
pub fn ifindex(&self) -> usizeInterface number
pub fn hatype(&self) -> u16[src]
pub fn hatype(&self) -> u16ARP hardware type
pub fn pkttype(&self) -> u8[src]
pub fn pkttype(&self) -> u8Packet type
pub fn halen(&self) -> usize[src]
pub fn halen(&self) -> usizeLength of MAC address
pub fn addr(&self) -> [u8; 6][src]
pub fn addr(&self) -> [u8; 6]Physical-layer address (MAC)
Trait Implementations
impl Clone for LinkAddr[src]
impl Clone for LinkAddrfn clone(&self) -> LinkAddr[src]
fn clone(&self) -> LinkAddrReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Copy for LinkAddr[src]
impl Copy for LinkAddrimpl Eq for LinkAddr[src]
impl Eq for LinkAddrimpl PartialEq for LinkAddr[src]
impl PartialEq for LinkAddrfn eq(&self, other: &Self) -> bool[src]
fn eq(&self, other: &Self) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0
[src]This method tests for !=.
impl Hash for LinkAddr[src]
impl Hash for LinkAddrfn hash<H: Hasher>(&self, s: &mut H)[src]
fn hash<H: Hasher>(&self, s: &mut H)Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0
[src]Feeds a slice of this type into the given [Hasher]. Read more
impl Display for LinkAddr[src]
impl Display for LinkAddrfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Debug for LinkAddr[src]
impl Debug for LinkAddr