pub enum TimeoutStyle {
Relative,
Absolute,
}Expand description
Whether the timeout is relative or absolute.
Variants§
Relative
The given duration is interpreted relative to “now” for the selected clock.
Absolute
The given duration is interpreted as an “absolute” time, i.e., relative to the epoch of the selected clock.
Trait Implementations§
Source§impl Clone for TimeoutStyle
impl Clone for TimeoutStyle
Source§fn clone(&self) -> TimeoutStyle
fn clone(&self) -> TimeoutStyle
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 moreSource§impl Debug for TimeoutStyle
impl Debug for TimeoutStyle
impl Copy for TimeoutStyle
Auto Trait Implementations§
impl Freeze for TimeoutStyle
impl RefUnwindSafe for TimeoutStyle
impl Send for TimeoutStyle
impl Sync for TimeoutStyle
impl Unpin for TimeoutStyle
impl UnsafeUnpin for TimeoutStyle
impl UnwindSafe for TimeoutStyle
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 1 byte
Size for each variant:
Relative: 0 bytesAbsolute: 0 bytes