Skip to main content

InboundCtx

Struct InboundCtx 

Source
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: u32

Domain the receiver lives in.

§source_peer: &'a PeerKey

GuidPrefix of the sender (from RTPS header bytes 8..20).

§source_iface: &'a NetInterface

Class 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: bool

true if the packet begins with SRTPS_PREFIX (i.e. according to the wire format it is already protected).

Trait Implementations§

Source§

impl<'a> Debug for InboundCtx<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.