pub enum QoSDurabilityPolicy {
SystemDefault = 0,
TransientLocal = 1,
Volatile = 2,
}
Expand description
The DURABILITY
DDS QoS policy.
If a subscription is created after some messages have already been published, it is possible for the subscription to receive a number of previously-published messages by using the “transient local” durability kind on both ends. For this, the publisher must still exist when the subscription is created.
§Compatibility
Publisher | Subscription | Compatible | Behavior |
---|---|---|---|
TransientLocal | TransientLocal | yes | Deliver old messages to new subscriptions |
TransientLocal | Volatile | yes | Deliver only new messages |
Volatile | TransientLocal | no | - |
Volatile | Volatile | yes | Deliver only new messages |
Variants§
SystemDefault = 0
Use the default policy of the RMW layer.
TransientLocal = 1
Re-deliver old messages.
- For publishers: Retain messages for later delivery.
- For subscriptions: Request delivery of old messages.
Volatile = 2
Do not retain/request old messages.
Trait Implementations§
Source§impl Clone for QoSDurabilityPolicy
impl Clone for QoSDurabilityPolicy
Source§fn clone(&self) -> QoSDurabilityPolicy
fn clone(&self) -> QoSDurabilityPolicy
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 QoSDurabilityPolicy
impl Debug for QoSDurabilityPolicy
Source§impl Ord for QoSDurabilityPolicy
impl Ord for QoSDurabilityPolicy
Source§fn cmp(&self, other: &QoSDurabilityPolicy) -> Ordering
fn cmp(&self, other: &QoSDurabilityPolicy) -> Ordering
1.21.0 · 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
Source§impl PartialEq for QoSDurabilityPolicy
impl PartialEq for QoSDurabilityPolicy
Source§impl PartialOrd for QoSDurabilityPolicy
impl PartialOrd for QoSDurabilityPolicy
impl Copy for QoSDurabilityPolicy
impl Eq for QoSDurabilityPolicy
impl StructuralPartialEq for QoSDurabilityPolicy
Auto Trait Implementations§
impl Freeze for QoSDurabilityPolicy
impl RefUnwindSafe for QoSDurabilityPolicy
impl Send for QoSDurabilityPolicy
impl Sync for QoSDurabilityPolicy
impl Unpin for QoSDurabilityPolicy
impl UnwindSafe for QoSDurabilityPolicy
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