pub enum FaceAddr {
Udp(SocketAddr),
Ether([u8; 6]),
}Expand description
Link-layer source address returned by multicast/broadcast faces.
Using a dedicated enum (rather than re-exporting the ndn-discovery
LinkAddr) keeps ndn-transport free of a dependency on ndn-discovery.
The engine converts FaceAddr into ndn_discovery::InboundMeta in the
face reader, which does depend on ndn-discovery.
Variants§
Udp(SocketAddr)
Source UDP SocketAddr from recvfrom on a multicast socket.
Ether([u8; 6])
Source MAC address extracted from the Ethernet frame header.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FaceAddr
impl RefUnwindSafe for FaceAddr
impl Send for FaceAddr
impl Sync for FaceAddr
impl Unpin for FaceAddr
impl UnwindSafe for FaceAddr
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