Skip to main content

SpdpSecure

Struct SpdpSecure 

Source
pub struct SpdpSecure { /* private fields */ }
Expand description

The SPDPbuiltinParticipantsSecureWriter and Reader of one participant.

Implementations§

Source§

impl SpdpSecure

Source

pub const BUILTIN_ENDPOINTS: u32

The bits of availableBuiltinEndpoints for the endpoints provided here.

Source

pub fn new( prefix: GuidPrefix, vendor_id: VendorId, writer: WriterConfig, reader: ReaderConfig, ) -> Self

The endpoints of the participant prefix.

Source

pub fn add_participant(&mut self, p: &ParticipantData, now: Instant)

Connects with the endpoints of an authenticated participant, as far as its availableBuiltinEndpoints says it has them. The local participant is ignored.

Source

pub fn remove_participant(&mut self, prefix: &GuidPrefix)

Disconnects from a participant that is gone.

Source

pub fn write(&mut self, data: &ParticipantData)

Writes the local participant’s data, replacing what was written before. It is sent at the next Self::poll.

Source

pub fn dispose(&mut self) -> SequenceNumber

Writes that the local participant is going away: disposed and unregistered, with the key, PID_PARTICIPANT_GUID, as the payload, as on SPDP (DDSI-RTPS 2.5, 9.6.3.2). Returns its sequence number, for Self::is_acked_by_all.

Source

pub fn is_acked_by_all(&self, sn: SequenceNumber) -> bool

Whether every matched reader acknowledged the change sn.

Source

pub fn handle_message( &mut self, bytes: &[u8], now: Instant, ) -> Vec<SecureParticipantEvent>

Processes one received RTPS message, decoded by DDS Security: returns what other participants sent. The data and disposes are taken as the writer’s participant’s own, whatever they say.

Source

pub fn poll(&mut self, now: Instant) -> Vec<Outgoing>

The datagrams due at now.

Source

pub fn next_deadline(&self) -> Option<Instant>

When Self::poll next has something to do, if no message comes in before.

Trait Implementations§

Source§

impl Debug for SpdpSecure

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Forget for SpdpSecure

§

impl Freeze for SpdpSecure
where *const LeafNode<SequenceNumber, Change> is !null: Freeze, PhantomData<(Owned, LeafOrInternal)>: Freeze, PhantomData<Box<(SequenceNumber, Change)>>: Freeze, *const u8 is !null: Freeze, PhantomData<(Guid, ReaderProxy)>: Freeze, *const LeafNode<SequenceNumber, Guid> is !null: Freeze, PhantomData<Box<(SequenceNumber, Guid)>>: Freeze, PhantomData<(Guid, WriterProxy)>: Freeze,

§

impl Move for SpdpSecure

§

impl RefUnwindSafe for SpdpSecure

§

impl Send for SpdpSecure
where NodeRef<Owned, SequenceNumber, Change, LeafOrInternal>: Send, BoxRaw<(SequenceNumber, Change)>: Send, RawTable<(Guid, ReaderProxy)>: Send, NodeRef<Owned, SequenceNumber, Guid, LeafOrInternal>: Send, BoxRaw<(SequenceNumber, Guid)>: Send, RawTable<(Guid, WriterProxy)>: Send,

§

impl Sync for SpdpSecure
where NodeRef<Owned, SequenceNumber, Change, LeafOrInternal>: Sync, BoxRaw<(SequenceNumber, Change)>: Sync, RawTable<(Guid, ReaderProxy)>: Sync, NodeRef<Owned, SequenceNumber, Guid, LeafOrInternal>: Sync, BoxRaw<(SequenceNumber, Guid)>: Sync, RawTable<(Guid, WriterProxy)>: Sync,

§

impl Unpin for SpdpSecure
where *const LeafNode<SequenceNumber, Change> is !null: Unpin, Box<(SequenceNumber, Change)>: Unpin, *const u8 is !null: Unpin, *const LeafNode<SequenceNumber, SetValZST> is !null: Unpin, Box<(SequenceNumber, SetValZST)>: Unpin, *const LeafNode<SequenceNumber, BTreeSet<u32>> is !null: Unpin, Box<(SequenceNumber, BTreeSet<u32>)>: Unpin, *const LeafNode<SequenceNumber, Guid> is !null: Unpin, Box<(SequenceNumber, Guid)>: Unpin, *const LeafNode<SequenceNumber, Pending> is !null: Unpin, Box<(SequenceNumber, Pending)>: Unpin, *const LeafNode<SequenceNumber, Partial> is !null: Unpin, Box<(SequenceNumber, Partial)>: Unpin, *const LeafNode<SequenceNumber, FragmentNumber> is !null: Unpin, Box<(SequenceNumber, FragmentNumber)>: Unpin,

§

impl UnsafeUnpin for SpdpSecure

§

impl UnwindSafe for SpdpSecure

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, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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.