Struct nix::sys::socket::LinkAddr
[−]
[src]
pub struct LinkAddr(pub sockaddr_ll);
Hardware Address
Methods
impl LinkAddr[src]
pub fn family(&self) -> AddressFamily[src]
Always AF_PACKET
pub fn protocol(&self) -> u16[src]
Physical-layer protocol
pub fn ifindex(&self) -> usize[src]
Interface number
pub fn hatype(&self) -> u16[src]
ARP hardware type
pub fn pkttype(&self) -> u8[src]
Packet type
pub fn halen(&self) -> usize[src]
Length of MAC address
pub fn addr(&self) -> [u8; 6][src]
Physical-layer address (MAC)
Trait Implementations
impl Clone for LinkAddr[src]
fn clone(&self) -> LinkAddr[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Copy for LinkAddr[src]
impl Eq for LinkAddr[src]
impl PartialEq for LinkAddr[src]
fn eq(&self, other: &Self) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
This method tests for !=.
impl Hash for LinkAddr[src]
fn hash<H: Hasher>(&self, s: &mut H)[src]
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]
H: Hasher,
Feeds a slice of this type into the given [Hasher]. Read more
impl Display for LinkAddr[src]
fn fmt(&self, f: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more