Skip to main content

Sedp

Struct Sedp 

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

The SEDP built-in endpoints of one participant, and the endpoint matching.

Implementations§

Source§

impl Sedp

Source

pub const BUILTIN_ENDPOINTS: u32

The SEDP bits of availableBuiltinEndpoints for the endpoints provided here (9.3.2.12).

Source

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.

Source

pub fn new(prefix: GuidPrefix, vendor_id: VendorId, config: SedpConfig) -> Self

The SEDP endpoints of the participant prefix.

Source

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.

Source

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.

Source

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.

Source

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.

Source

pub fn remove_writer(&mut self, guid: &Guid) -> Vec<SedpEvent>

Announces that a local writer is gone.

Source

pub fn remove_reader(&mut self, guid: &Guid) -> Vec<SedpEvent>

Announces that a local reader is gone.

Source

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.

Source

pub fn remote_writers(&self) -> impl Iterator<Item = &EndpointData>

The remote writers known.

Source

pub fn remote_readers(&self) -> impl Iterator<Item = &EndpointData>

The remote readers known.

Source

pub fn remote_writer(&self, guid: &Guid) -> Option<&EndpointData>

Looks up a remote writer.

Source

pub fn remote_reader(&self, guid: &Guid) -> Option<&EndpointData>

Looks up a remote reader.

Source

pub fn registry(&self) -> &TypeRegistry

The TypeObjects known.

Source

pub fn registry_mut(&mut self) -> &mut TypeRegistry

The TypeObjects known, to add to. Call Sedp::rematch_unresolved after adding.

Source

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).

Source

pub fn rematch_unresolved(&mut self) -> Vec<SedpEvent>

Matches again the pairs that waited for TypeObjects.

Source

pub fn matched(&self, local: &Guid) -> impl Iterator<Item = &Guid>

The remote endpoints that match a local one.

Source

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

Processes one received RTPS message and returns what changed.

Source

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

The datagrams due at now.

Source

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

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

Source

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.

Source

pub fn add_writer_secure(&mut self, data: EndpointData) -> Vec<SedpEvent>

Like Sedp::add_writer, on the secure endpoints if they are enabled.

Source

pub fn add_reader_secure(&mut self, data: EndpointData) -> Vec<SedpEvent>

Like Sedp::add_reader, on the secure endpoints if they are enabled.

Trait Implementations§

Source§

impl Debug for Sedp

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Forget for Sedp

§

impl Freeze for Sedp

§

impl Move for Sedp

§

impl RefUnwindSafe for Sedp

§

impl Send for Sedp
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, RawTable<(GuidPrefix, (Vec<Locator>, Vec<Locator>))>: Send, NodeRef<Owned, Guid, Local, LeafOrInternal>: Send, BoxRaw<(Guid, Local)>: Send, RawTable<(Guid, EndpointData)>: Send, RawTable<((Guid, Guid), ())>: Send, RawTable<((Guid, Guid), Vec<TypeIdentifier>)>: Send, RawTable<(TypeIdentifier, TypeObject)>: Send,

§

impl Sync for Sedp
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, RawTable<(GuidPrefix, (Vec<Locator>, Vec<Locator>))>: Sync, NodeRef<Owned, Guid, Local, LeafOrInternal>: Sync, BoxRaw<(Guid, Local)>: Sync, RawTable<(Guid, EndpointData)>: Sync, RawTable<((Guid, Guid), ())>: Sync, RawTable<((Guid, Guid), Vec<TypeIdentifier>)>: Sync, RawTable<(TypeIdentifier, TypeObject)>: Sync,

§

impl Unpin for Sedp
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, *const LeafNode<Guid, Local> is !null: Unpin, Box<(Guid, Local)>: Unpin, Box<TypeIdentifier>: Unpin,

§

impl UnsafeUnpin for Sedp

§

impl UnwindSafe for Sedp

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.