pub struct InboundCtx<'a> {
pub domain_id: u32,
pub source_peer: &'a PeerKey,
pub source_iface: &'a NetInterface,
pub source_caps: Option<&'a PeerCapabilities>,
pub is_sec_prefixed: bool,
}Expand description
Inbound decision context: a datagram has come in.
Fields§
§domain_id: u32Domain the receiver lives in.
source_peer: &'a PeerKeyGuidPrefix of the sender (from RTPS header bytes 8..20).
source_iface: &'a NetInterfaceClass of the receive interface.
source_caps: Option<&'a PeerCapabilities>Capability snapshot of the sender. None if the peer has never
sent an SPDP announce (legacy vendor or
pre-discovery).
is_sec_prefixed: booltrue if the packet begins with SRTPS_PREFIX (i.e. according to the
wire format it is already protected).
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for InboundCtx<'a>
impl<'a> RefUnwindSafe for InboundCtx<'a>
impl<'a> Send for InboundCtx<'a>
impl<'a> Sync for InboundCtx<'a>
impl<'a> Unpin for InboundCtx<'a>
impl<'a> UnsafeUnpin for InboundCtx<'a>
impl<'a> UnwindSafe for InboundCtx<'a>
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