Skip to main content

QoSSystemDefaults

Struct QoSSystemDefaults 

Source
pub struct QoSSystemDefaults {
    pub reliability: QoSReliabilityPolicy,
    pub durability: QoSDurabilityPolicy,
    pub history: QoSHistoryPolicy,
    pub depth: u32,
}
Expand description

What ONE backend resolves the SYSTEM_DEFAULT sentinel to.

issue 0829. rmw_qos_profile_system_default is an absence, and the RMW fills it — which means the answer is per backend and there is no constant this crate could bake. Each backend declares its own QoSSystemDefaults and applies it with QoSProfile::resolve_system_default at its create entry, before anything is derived from the QoS.

That ordering is load-bearing on the zenoh path: the profile is serialised into the liveliness-token keyexpr that a ROS rmw_zenoh_cpp peer parses out of the graph (nros-rmw-zenoh/src/keyexpr.rs). Upstream resolves in best_available_qos before the entity and its token exist, so its tokens never carry a sentinel; ours must not either, or we advertise 0:0:0,0 to peers as though it were a policy.

The values a backend picks should mirror the corresponding upstream RMW, not the raw middleware default — interop with a ROS peer is the requirement, and the two differ. Leaving dds_qset_reliability unset gives Cyclone’s own reader default of BEST_EFFORT (ddsi_plist.c:3470), where rmw_cyclonedds_cpp deliberately picks RELIABLE.

Fields§

§reliability: QoSReliabilityPolicy

Concrete reliability. Must not itself be SystemDefault.

§durability: QoSDurabilityPolicy

Concrete durability. Must not itself be SystemDefault.

§history: QoSHistoryPolicy

Concrete history. Must not itself be SystemDefault.

§depth: u32

Concrete queue depth. 0 means the backend genuinely has no answer and defers further down the stack — the XRCE case, where the client encodes exactly that (optional_history_depth = false) and the Agent’s DDS layer resolves it.

Trait Implementations§

Source§

impl Clone for QoSSystemDefaults

Source§

fn clone(&self) -> QoSSystemDefaults

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 Copy for QoSSystemDefaults

Source§

impl Debug for QoSSystemDefaults

Source§

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

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

impl Eq for QoSSystemDefaults

Source§

impl PartialEq for QoSSystemDefaults

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · 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 StructuralPartialEq for QoSSystemDefaults

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.