Skip to main content

Submessage

Enum Submessage 

Source
pub enum Submessage {
Show 15 variants HeaderExtension(HeaderExtension), Pad(Pad), AckNack(AckNack), Heartbeat(Heartbeat), Gap(Gap), InfoTimestamp(InfoTimestamp), InfoSource(InfoSource), InfoReplyIp4(InfoReplyIp4), InfoDestination(InfoDestination), InfoReply(InfoReply), NackFrag(NackFrag), HeartbeatFrag(HeartbeatFrag), Data(Data), DataFrag(DataFrag), Unknown(UnknownSubmessage),
}
Expand description

One submessage.

Variants§

§

HeaderExtension(HeaderExtension)

RTPS_HE (8.3.7, 9.4.5.2).

§

Pad(Pad)

PAD (8.3.8.13, 9.4.5.13).

§

AckNack(AckNack)

ACKNACK (8.3.8.1, 9.4.5.3).

§

Heartbeat(Heartbeat)

HEARTBEAT (8.3.8.6, 9.4.5.7).

§

Gap(Gap)

GAP (8.3.8.4, 9.4.5.6).

§

InfoTimestamp(InfoTimestamp)

INFO_TS (8.3.8.11, 9.4.5.12).

§

InfoSource(InfoSource)

INFO_SRC (8.3.8.10, 9.4.5.11).

§

InfoReplyIp4(InfoReplyIp4)

INFO_REPLY_IP4 (9.4.5.15).

§

InfoDestination(InfoDestination)

INFO_DST (8.3.8.8, 9.4.5.9).

§

InfoReply(InfoReply)

INFO_REPLY (8.3.8.9, 9.4.5.10).

§

NackFrag(NackFrag)

NACK_FRAG (8.3.8.12, 9.4.5.14).

§

HeartbeatFrag(HeartbeatFrag)

HEARTBEAT_FRAG (8.3.8.7, 9.4.5.8).

§

Data(Data)

DATA (8.3.8.2, 9.4.5.4).

§

DataFrag(DataFrag)

DATA_FRAG (8.3.8.3, 9.4.5.5).

§

Unknown(UnknownSubmessage)

A submessage this crate does not know: a vendor-specific one, or one from a later minor version. Receivers skip these (8.3.4.1 rule 3).

Implementations§

Source§

impl Submessage

Source

pub fn id(&self) -> u8

The submessage id.

Trait Implementations§

Source§

impl Clone for Submessage

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Submessage

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Eq for Submessage

Source§

impl PartialEq for Submessage

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for Submessage

Auto Trait Implementations§

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.