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
sourceimpl QosPolicies
impl QosPolicies
pub fn qos_none() -> QosPolicies
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 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: &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 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
sourceimpl Clone for QosPolicies
impl Clone for QosPolicies
sourcefn clone(&self) -> QosPolicies
fn clone(&self) -> QosPolicies
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for QosPolicies
impl Debug for QosPolicies
sourceimpl Default for QosPolicies
impl Default for QosPolicies
sourcefn default() -> QosPolicies
fn default() -> QosPolicies
Returns the “default value” for a type. Read more
sourceimpl PartialEq<QosPolicies> for QosPolicies
impl PartialEq<QosPolicies> for QosPolicies
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &QosPolicies) -> bool
fn ne(&self, other: &QosPolicies) -> bool
This method tests for !=
.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more