pub enum DurabilityKind {
Volatile,
TransientLocal,
Transient,
Persistent,
}Expand description
DurabilityQosPolicyKind, in the order of the DDS enum, which is also
the order used to compare an offered and a requested kind (DDS 1.4,
2.2.3.4).
Variants§
Volatile
VOLATILE_DURABILITY_QOS, the default.
TransientLocal
TRANSIENT_LOCAL_DURABILITY_QOS.
Transient
TRANSIENT_DURABILITY_QOS.
Persistent
PERSISTENT_DURABILITY_QOS.
Implementations§
Source§impl DurabilityKind
impl DurabilityKind
Sourcepub fn from_parameter(
v: &PlValues,
p: &Parameter,
) -> Result<DurabilityKind, DecodeError>
pub fn from_parameter( v: &PlValues, p: &Parameter, ) -> Result<DurabilityKind, DecodeError>
Reads PID_DURABILITY: { DurabilityQosPolicyKind kind; }, the
enum being a 32-bit ordinal.
Sourcepub fn to_parameter(self, b: &PlBuilder) -> Parameter
pub fn to_parameter(self, b: &PlBuilder) -> Parameter
Writes PID_DURABILITY.
Trait Implementations§
Source§impl Clone for DurabilityKind
impl Clone for DurabilityKind
Source§fn clone(&self) -> DurabilityKind
fn clone(&self) -> DurabilityKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DurabilityKind
Source§impl Debug for DurabilityKind
impl Debug for DurabilityKind
Source§impl Default for DurabilityKind
impl Default for DurabilityKind
Source§fn default() -> DurabilityKind
fn default() -> DurabilityKind
Returns the “default value” for a type. Read more
impl Eq for DurabilityKind
Source§impl Hash for DurabilityKind
impl Hash for DurabilityKind
Source§impl Ord for DurabilityKind
impl Ord for DurabilityKind
Source§fn cmp(&self, other: &DurabilityKind) -> Ordering
fn cmp(&self, other: &DurabilityKind) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for DurabilityKind
impl PartialEq for DurabilityKind
Source§impl PartialOrd for DurabilityKind
impl PartialOrd for DurabilityKind
impl StructuralPartialEq for DurabilityKind
Auto Trait Implementations§
impl Forget for DurabilityKind
impl Freeze for DurabilityKind
impl Move for DurabilityKind
impl RefUnwindSafe for DurabilityKind
impl Send for DurabilityKind
impl Sync for DurabilityKind
impl Unpin for DurabilityKind
impl UnsafeUnpin for DurabilityKind
impl UnwindSafe for DurabilityKind
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