pub enum LinkAddr {
Ether(MacAddr),
Udp(SocketAddr),
}Expand description
Link-layer source address of an inbound packet.
Populated by the engine when the face layer can provide a sender address
(multicast faces via recv_with_source). None for unicast faces where
the sender identity is already implicit in the face itself.
Variants§
Ether(MacAddr)
Source MAC extracted from the Ethernet frame header.
Udp(SocketAddr)
Source IP:port extracted from the UDP socket (recvfrom).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LinkAddr
impl RefUnwindSafe for LinkAddr
impl Send for LinkAddr
impl Sync for LinkAddr
impl Unpin for LinkAddr
impl UnwindSafe for LinkAddr
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more