Struct ros2_client::DEFAULT_SUBSCRIPTION_QOS

source ·
pub struct DEFAULT_SUBSCRIPTION_QOS { /* private fields */ }
Expand description

Basic BestEffort QoS for subscribers

Note: If you want Reliable communication, both publisher and Subscriber must specify QoS Reliability = Reliable.

Methods from Deref<Target = QosPolicies>§

source

pub fn durability(&self) -> Option<Durability>

source

pub fn is_volatile(&self) -> bool

source

pub fn presentation(&self) -> Option<Presentation>

source

pub fn deadline(&self) -> Option<Deadline>

source

pub fn latency_budget(&self) -> Option<LatencyBudget>

source

pub fn ownership(&self) -> Option<Ownership>

source

pub fn liveliness(&self) -> Option<Liveliness>

source

pub fn time_based_filter(&self) -> Option<TimeBasedFilter>

source

pub fn reliability(&self) -> Option<Reliability>

source

pub fn is_reliable(&self) -> bool

source

pub fn reliable_max_blocking_time(&self) -> Option<Duration>

source

pub fn destination_order(&self) -> Option<DestinationOrder>

source

pub fn history(&self) -> Option<History>

source

pub fn resource_limits(&self) -> Option<ResourceLimits>

source

pub fn lifespan(&self) -> Option<Lifespan>

source

pub fn modify_by(&self, other: &QosPolicies) -> QosPolicies

Merge two QosPolicies

Constructs a QosPolicy, where each policy is taken from self, and overwritten with those policies from other that are defined.

source

pub fn compliance_failure_wrt(&self, other: &QosPolicies) -> Option<QosPolicyId>

Check if policy complies to another policy.

self is the “offered” (publisher) QoS other is the “requested” (subscriber) QoS

  • None => Policies are compatible
  • Some(policyId) => Failure, where policyId is (any) one of the policies causing incompliance

Compliance (compatibility) is defined in the table in DDS spec v1.4 Section “2.2.3 Supported QoS”

This is not symmetric.

source

pub fn to_parameter_list( &self, ctx: Endianness ) -> Result<Vec<Parameter>, PlCdrSerializeError>

Trait Implementations§

source§

impl Deref for DEFAULT_SUBSCRIPTION_QOS

§

type Target = QosPolicies

The resulting type after dereferencing.
source§

fn deref(&self) -> &QosPolicies

Dereferences the value.
source§

impl LazyStatic for DEFAULT_SUBSCRIPTION_QOS

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> 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>,

§

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>,

§

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.
source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V