Skip to main content

Wlp

Struct Wlp 

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

The built-in participant message writer and reader of one participant.

Implementations§

Source§

impl Wlp

Source

pub const BUILTIN_ENDPOINTS: u32

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

Source

pub const BUILTIN_ENDPOINTS_SECURE: u32

The bits of the secure endpoints (DDS Security 1.2, 7.4.7.1).

Source

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

The endpoints of the participant prefix.

Source

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.

Source

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.

Source

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

Disconnects from a participant that is gone.

Source

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.

Source

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.

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 Wlp

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Forget for Wlp

§

impl Freeze for Wlp

§

impl Move for Wlp

§

impl RefUnwindSafe for Wlp

§

impl Send for Wlp

§

impl Sync for Wlp

§

impl Unpin for Wlp

§

impl UnsafeUnpin for Wlp

§

impl UnwindSafe for Wlp

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.