pub struct SpdpSecure { /* private fields */ }Expand description
The SPDPbuiltinParticipantsSecureWriter and Reader of one participant.
Implementations§
Source§impl SpdpSecure
impl SpdpSecure
Sourcepub const BUILTIN_ENDPOINTS: u32
pub const BUILTIN_ENDPOINTS: u32
The bits of availableBuiltinEndpoints for the endpoints provided
here.
Sourcepub fn new(
prefix: GuidPrefix,
vendor_id: VendorId,
writer: WriterConfig,
reader: ReaderConfig,
) -> Self
pub fn new( prefix: GuidPrefix, vendor_id: VendorId, writer: WriterConfig, reader: ReaderConfig, ) -> Self
The endpoints of the participant prefix.
Sourcepub fn add_participant(&mut self, p: &ParticipantData, now: Instant)
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.
Sourcepub fn remove_participant(&mut self, prefix: &GuidPrefix)
pub fn remove_participant(&mut self, prefix: &GuidPrefix)
Disconnects from a participant that is gone.
Sourcepub fn write(&mut self, data: &ParticipantData)
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.
Sourcepub fn dispose(&mut self) -> SequenceNumber
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.
Sourcepub fn is_acked_by_all(&self, sn: SequenceNumber) -> bool
pub fn is_acked_by_all(&self, sn: SequenceNumber) -> bool
Whether every matched reader acknowledged the change sn.
Sourcepub fn handle_message(
&mut self,
bytes: &[u8],
now: Instant,
) -> Vec<SecureParticipantEvent>
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.
Sourcepub fn next_deadline(&self) -> Option<Instant>
pub fn next_deadline(&self) -> Option<Instant>
When Self::poll next has something to do, if no message comes
in before.