Struct ros2_client::builtin_topics::parameter_events::QOS
source · pub struct QOS { /* private fields */ }
Methods from Deref<Target = QosPolicies>§
pub fn durability(&self) -> Option<Durability>
pub fn is_volatile(&self) -> bool
pub fn presentation(&self) -> Option<Presentation>
pub fn deadline(&self) -> Option<Deadline>
pub fn latency_budget(&self) -> Option<LatencyBudget>
pub fn ownership(&self) -> Option<Ownership>
pub fn liveliness(&self) -> Option<Liveliness>
pub fn time_based_filter(&self) -> Option<TimeBasedFilter>
pub fn reliability(&self) -> Option<Reliability>
pub fn is_reliable(&self) -> bool
pub fn reliable_max_blocking_time(&self) -> Option<Duration>
pub fn destination_order(&self) -> Option<DestinationOrder>
pub fn history(&self) -> Option<History>
pub fn resource_limits(&self) -> Option<ResourceLimits>
pub fn lifespan(&self) -> Option<Lifespan>
sourcepub fn modify_by(&self, other: &QosPolicies) -> QosPolicies
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.
sourcepub fn compliance_failure_wrt(&self, other: &QosPolicies) -> Option<QosPolicyId>
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.
pub fn to_parameter_list( &self, ctx: Endianness ) -> Result<Vec<Parameter>, PlCdrSerializeError>
Trait Implementations§
source§impl Deref for QOS
impl Deref for QOS
§type Target = QosPolicies
type Target = QosPolicies
The resulting type after dereferencing.
source§fn deref(&self) -> &QosPolicies
fn deref(&self) -> &QosPolicies
Dereferences the value.
impl LazyStatic for QOS
Auto Trait Implementations§
impl RefUnwindSafe for QOS
impl Send for QOS
impl Sync for QOS
impl Unpin for QOS
impl UnwindSafe for QOS
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more