pub struct InboundMeta {
pub source: Option<LinkAddr>,
}Expand description
Per-packet metadata passed to DiscoveryProtocol::on_inbound.
Carries side-channel information that does not appear in the NDN wire bytes — primarily the link-layer source address needed to create a unicast reply face without embedding addresses in the Interest payload.
Fields§
§source: Option<LinkAddr>Source address of the sender, if the face layer exposed it.
Implementations§
Trait Implementations§
Source§impl Clone for InboundMeta
impl Clone for InboundMeta
Source§fn clone(&self) -> InboundMeta
fn clone(&self) -> InboundMeta
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InboundMeta
impl Debug for InboundMeta
Source§impl Default for InboundMeta
impl Default for InboundMeta
Source§fn default() -> InboundMeta
fn default() -> InboundMeta
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for InboundMeta
impl RefUnwindSafe for InboundMeta
impl Send for InboundMeta
impl Sync for InboundMeta
impl Unpin for InboundMeta
impl UnwindSafe for InboundMeta
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