Struct rustdds::QosPolicies
source · pub struct QosPolicies { /* private fields */ }
Expand description
Describes a set of RTPS/DDS QoS policies
QosPolicies are constructed using a QosPolicyBuilder
Implementations§
source§impl QosPolicies
impl QosPolicies
pub fn qos_none() -> Self
pub fn builder() -> QosPolicyBuilder
pub const fn durability(&self) -> Option<Durability>
pub const fn presentation(&self) -> Option<Presentation>
pub const fn deadline(&self) -> Option<Deadline>
pub const fn latency_budget(&self) -> Option<LatencyBudget>
pub const fn ownership(&self) -> Option<Ownership>
pub const fn liveliness(&self) -> Option<Liveliness>
pub const fn time_based_filter(&self) -> Option<TimeBasedFilter>
pub const fn reliability(&self) -> Option<Reliability>
pub const fn reliable_max_blocking_time(&self) -> Option<Duration>
pub const fn destination_order(&self) -> Option<DestinationOrder>
pub const fn history(&self) -> Option<History>
pub const fn resource_limits(&self) -> Option<ResourceLimits>
pub const fn lifespan(&self) -> Option<Lifespan>
sourcepub fn modify_by(&self, other: &Self) -> Self
pub fn modify_by(&self, other: &Self) -> Self
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: &Self) -> Option<QosPolicyId>
pub fn compliance_failure_wrt(&self, other: &Self) -> Option<QosPolicyId>
Check if policy commplies 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.
Trait Implementations§
source§impl Clone for QosPolicies
impl Clone for QosPolicies
source§fn clone(&self) -> QosPolicies
fn clone(&self) -> QosPolicies
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for QosPolicies
impl Debug for QosPolicies
source§impl Default for QosPolicies
impl Default for QosPolicies
source§fn default() -> QosPolicies
fn default() -> QosPolicies
Returns the “default value” for a type. Read more
source§impl PartialEq<QosPolicies> for QosPolicies
impl PartialEq<QosPolicies> for QosPolicies
source§fn eq(&self, other: &QosPolicies) -> bool
fn eq(&self, other: &QosPolicies) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for QosPolicies
impl StructuralEq for QosPolicies
impl StructuralPartialEq for QosPolicies
Auto Trait Implementations§
impl RefUnwindSafe for QosPolicies
impl Send for QosPolicies
impl Sync for QosPolicies
impl Unpin for QosPolicies
impl UnwindSafe for QosPolicies
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