Skip to main content

NrosRmwQos

Struct NrosRmwQos 

Source
#[repr(C)]
pub struct NrosRmwQos { pub reliability: u8, pub durability: u8, pub history: u8, pub liveliness_kind: u8, pub depth: u16, pub _reserved0: u16, pub deadline_ms: u32, pub lifespan_ms: u32, pub liveliness_lease_ms: u32, pub avoid_ros_namespace_conventions: u8, pub _reserved1: [u8; 3], pub rx_buffer_hint: u32, }
Expand description

Full DDS-shaped QoS profile. Mirrors nros_rmw_qos_t from <nros/rmw_entity.h>.

Fields§

§reliability: u8

Reliability policy: 0 = best-effort, 1 = reliable.

§durability: u8

Durability policy: 0 = volatile, 1 = transient-local.

§history: u8

History policy: 0 = keep-last, 1 = keep-all.

§liveliness_kind: u8

Liveliness kind. See NrosRmwLivelinessKind.

§depth: u16

History depth (0–65 535).

§_reserved0: u16

Reserved; must be zero.

§deadline_ms: u32

Subscriber max-inter-arrival / publisher offered-rate, ms. 0 = infinite (no deadline).

§lifespan_ms: u32

Sample expiry, ms. 0 = infinite.

§liveliness_lease_ms: u32

Liveliness lease, ms. 0 = infinite.

§avoid_ros_namespace_conventions: u8

If non-zero, topic name encoding skips the ROS /rt/ prefix. u8 instead of bool for ABI parity with C — sizeof(_Bool) is impl-defined per C99.

§_reserved1: [u8; 3]

Reserved; must be zero.

§rx_buffer_hint: u32

Phase 231 (RFC-0038) — subscription receive-buffer size hint, bytes. Carries TopicInfo::rx_buffer_hint across the C ABI to create_subscriber so a size-classing backend (zenoh-pico) can pick a small/large receive buffer. 0 = unset. Appended at the struct tail (ABI-append); ignored by every slot except create_subscriber.

Trait Implementations§

Source§

impl Clone for NrosRmwQos

Source§

fn clone(&self) -> NrosRmwQos

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for NrosRmwQos

Source§

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

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

impl From<QosSettings> for NrosRmwQos

Source§

fn from(qos: QosSettings) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for NrosRmwQos

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for NrosRmwQos

Source§

impl Eq for NrosRmwQos

Source§

impl StructuralPartialEq for NrosRmwQos

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 = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.