pub enum QoSDuration {
SystemDefault,
Infinite,
Custom(Duration),
}
Expand description
A duration that can take two special values: System default and infinite.
Variants§
SystemDefault
This will use the RMW implementation’s default value, which may or may not be infinite.
Infinite
This will act as an infinite duration.
Custom(Duration)
A specific duration.
Trait Implementations§
Source§impl Clone for QoSDuration
impl Clone for QoSDuration
Source§fn clone(&self) -> QoSDuration
fn clone(&self) -> QoSDuration
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 QoSDuration
impl Debug for QoSDuration
Source§impl Ord for QoSDuration
impl Ord for QoSDuration
Source§fn cmp(&self, other: &QoSDuration) -> Ordering
fn cmp(&self, other: &QoSDuration) -> 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 QoSDuration
impl PartialEq for QoSDuration
Source§impl PartialOrd for QoSDuration
impl PartialOrd for QoSDuration
impl Copy for QoSDuration
impl Eq for QoSDuration
impl StructuralPartialEq for QoSDuration
Auto Trait Implementations§
impl Freeze for QoSDuration
impl RefUnwindSafe for QoSDuration
impl Send for QoSDuration
impl Sync for QoSDuration
impl Unpin for QoSDuration
impl UnwindSafe for QoSDuration
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