pub struct WfbFace { /* private fields */ }Expand description
NDN face over Wifibroadcast NG (wfb-ng).
wfb-ng uses 802.11 monitor mode with raw frame injection to implement a unidirectional broadcast link with FEC, discarding the 802.11 MAC entirely (no association, ACK, or CSMA/CA).
Because wfb-ng links are inherently unidirectional, this face is paired
with a complementary face via FacePairTable in the engine dispatcher:
when Data needs to return on a wfb-ng rx face, the dispatcher redirects it
to the paired tx face.
Implementations§
Trait Implementations§
Source§impl Face for WfbFace
impl Face for WfbFace
fn id(&self) -> FaceId
fn kind(&self) -> FaceKind
Source§async fn recv(&self) -> Result<Bytes, FaceError>
async fn recv(&self) -> Result<Bytes, FaceError>
Receive the next packet. Blocks until a packet arrives or the face closes.
Source§async fn send(&self, _pkt: Bytes) -> Result<(), FaceError>
async fn send(&self, _pkt: Bytes) -> Result<(), FaceError>
Send a packet. Must not block the caller; use internal buffering. Read more
Source§fn remote_uri(&self) -> Option<String>
fn remote_uri(&self) -> Option<String>
Remote URI (e.g.
udp4://192.168.1.1:6363). Returns None for face
types that don’t have a meaningful remote endpoint.Source§fn local_uri(&self) -> Option<String>
fn local_uri(&self) -> Option<String>
Local URI (e.g.
unix:///run/nfd/nfd.sock). Returns None for face
types that don’t expose local binding info.Auto Trait Implementations§
impl Freeze for WfbFace
impl RefUnwindSafe for WfbFace
impl Send for WfbFace
impl Sync for WfbFace
impl Unpin for WfbFace
impl UnwindSafe for WfbFace
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