pub struct Wlp { /* private fields */ }Expand description
The built-in participant message writer and reader of one participant.
Implementations§
Source§impl Wlp
impl Wlp
Sourcepub const BUILTIN_ENDPOINTS: u32
pub const BUILTIN_ENDPOINTS: u32
The bits of availableBuiltinEndpoints for the endpoints provided
here (9.3.2.12).
Sourcepub const BUILTIN_ENDPOINTS_SECURE: u32
pub const BUILTIN_ENDPOINTS_SECURE: u32
The bits of the secure endpoints (DDS Security 1.2, 7.4.7.1).
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 new_secure(
prefix: GuidPrefix,
vendor_id: VendorId,
writer: WriterConfig,
reader: ReaderConfig,
) -> Self
pub fn new_secure( prefix: GuidPrefix, vendor_id: VendorId, writer: WriterConfig, reader: ReaderConfig, ) -> Self
The secure endpoints of the participant prefix
(BuiltinParticipantMessageSecureWriter and Reader, DDS Security
1.2, 7.4.5), whose messages DDS Security protects.
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 a discovered participant, as far
as its availableBuiltinEndpoints says it has them. Its reader is
served best-effort when its builtinEndpointQos says so, reliably
otherwise (8.4.13.3). 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 assert_liveliness(&mut self, kind: [u8; 4])
pub fn assert_liveliness(&mut self, kind: [u8; 4])
Writes a message of kind kind (see kind), replacing the last
one of that kind. It is sent at the next Self::poll.
Sourcepub fn handle_message(
&mut self,
bytes: &[u8],
now: Instant,
) -> Vec<LivelinessAsserted>
pub fn handle_message( &mut self, bytes: &[u8], now: Instant, ) -> Vec<LivelinessAsserted>
Processes one received RTPS message: returns the messages of other participants it delivers.
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.