pub struct Sedp { /* private fields */ }Expand description
The SEDP built-in endpoints of one participant, and the endpoint matching.
Implementations§
Source§impl Sedp
impl Sedp
Sourcepub const BUILTIN_ENDPOINTS: u32
pub const BUILTIN_ENDPOINTS: u32
The SEDP 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 SEDP endpoints (DDS Security 1.2, 7.4.7.1), for a participant that enabled them.
Sourcepub fn new(prefix: GuidPrefix, vendor_id: VendorId, config: SedpConfig) -> Self
pub fn new(prefix: GuidPrefix, vendor_id: VendorId, config: SedpConfig) -> Self
The SEDP 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 the SEDP endpoints with those of a discovered participant,
as far as its availableBuiltinEndpoints says it has them
(8.5.5.1). Calling it again for the same participant updates the
locators. The local participant itself is ignored.
Sourcepub fn remove_participant(&mut self, prefix: &GuidPrefix) -> Vec<SedpEvent>
pub fn remove_participant(&mut self, prefix: &GuidPrefix) -> Vec<SedpEvent>
Disconnects from a participant that is gone (8.5.5.2) and forgets its endpoints.
Sourcepub fn add_writer(&mut self, data: EndpointData) -> Vec<SedpEvent>
pub fn add_writer(&mut self, data: EndpointData) -> Vec<SedpEvent>
Announces a local writer, or its new data if it is already announced, and matches it with the remote readers.
Sourcepub fn add_reader(&mut self, data: EndpointData) -> Vec<SedpEvent>
pub fn add_reader(&mut self, data: EndpointData) -> Vec<SedpEvent>
Announces a local reader, or its new data, and matches it with the remote writers.
Sourcepub fn remove_writer(&mut self, guid: &Guid) -> Vec<SedpEvent>
pub fn remove_writer(&mut self, guid: &Guid) -> Vec<SedpEvent>
Announces that a local writer is gone.
Sourcepub fn remove_reader(&mut self, guid: &Guid) -> Vec<SedpEvent>
pub fn remove_reader(&mut self, guid: &Guid) -> Vec<SedpEvent>
Announces that a local reader is gone.
Sourcepub fn is_announced_to(&self, local: &Guid, prefix: &GuidPrefix) -> bool
pub fn is_announced_to(&self, local: &Guid, prefix: &GuidPrefix) -> bool
Whether participant prefix has acknowledged the latest
announcement of local writer or reader local: then it knows the
endpoint’s current data.
Sourcepub fn remote_writers(&self) -> impl Iterator<Item = &EndpointData>
pub fn remote_writers(&self) -> impl Iterator<Item = &EndpointData>
The remote writers known.
Sourcepub fn remote_readers(&self) -> impl Iterator<Item = &EndpointData>
pub fn remote_readers(&self) -> impl Iterator<Item = &EndpointData>
The remote readers known.
Sourcepub fn remote_writer(&self, guid: &Guid) -> Option<&EndpointData>
pub fn remote_writer(&self, guid: &Guid) -> Option<&EndpointData>
Looks up a remote writer.
Sourcepub fn remote_reader(&self, guid: &Guid) -> Option<&EndpointData>
pub fn remote_reader(&self, guid: &Guid) -> Option<&EndpointData>
Looks up a remote reader.
Sourcepub fn registry(&self) -> &TypeRegistry
pub fn registry(&self) -> &TypeRegistry
The TypeObjects known.
Sourcepub fn registry_mut(&mut self) -> &mut TypeRegistry
pub fn registry_mut(&mut self) -> &mut TypeRegistry
The TypeObjects known, to add to. Call
Sedp::rematch_unresolved after adding.
Sourcepub fn unresolved_types(&self) -> Vec<(TypeIdentifier, Guid)>
pub fn unresolved_types(&self) -> Vec<(TypeIdentifier, Guid)>
The TypeIdentifiers whose TypeObjects pairs of endpoints wait for, with a remote endpoint that announced each (the one to ask).
Sourcepub fn rematch_unresolved(&mut self) -> Vec<SedpEvent>
pub fn rematch_unresolved(&mut self) -> Vec<SedpEvent>
Matches again the pairs that waited for TypeObjects.
Sourcepub fn matched(&self, local: &Guid) -> impl Iterator<Item = &Guid>
pub fn matched(&self, local: &Guid) -> impl Iterator<Item = &Guid>
The remote endpoints that match a local one.
Sourcepub fn handle_message(&mut self, bytes: &[u8], now: Instant) -> Vec<SedpEvent>
pub fn handle_message(&mut self, bytes: &[u8], now: Instant) -> Vec<SedpEvent>
Processes one received RTPS message and returns what changed.
Sourcepub fn next_deadline(&self) -> Option<Instant>
pub fn next_deadline(&self) -> Option<Instant>
When Sedp::poll next has something to do, if no message comes
in before.
Sourcepub fn enable_secure(&mut self)
pub fn enable_secure(&mut self)
Adds the secure SEDP endpoints (DDS Security 1.2, 7.4.1.4): the
local endpoints added with Sedp::add_writer_secure and
Sedp::add_reader_secure are announced on them, and they are
connected with those of the participants added after.
Sourcepub fn add_writer_secure(&mut self, data: EndpointData) -> Vec<SedpEvent>
pub fn add_writer_secure(&mut self, data: EndpointData) -> Vec<SedpEvent>
Like Sedp::add_writer, on the secure endpoints if they are
enabled.
Sourcepub fn add_reader_secure(&mut self, data: EndpointData) -> Vec<SedpEvent>
pub fn add_reader_secure(&mut self, data: EndpointData) -> Vec<SedpEvent>
Like Sedp::add_reader, on the secure endpoints if they are
enabled.