pub struct MonotonicDeadline(/* private fields */);Expand description
Absolute finite deadline measured by the runtime’s monotonic clock.
Implementations§
Source§impl MonotonicDeadline
impl MonotonicDeadline
Sourcepub const ORIGIN: Self
pub const ORIGIN: Self
The monotonic clock origin, which is necessarily already due once the clock has advanced.
Sourcepub const fn from_nanos(deadline_ns: u64) -> Option<Self>
pub const fn from_nanos(deadline_ns: u64) -> Option<Self>
Creates a representable physical clockevent deadline.
Zero is a valid already-due deadline. Absence is represented only by
Option::None; like Linux ktime_t, KTIME_MAX remains a finite value.
Sourcepub fn from_duration(deadline: Duration) -> Self
pub fn from_duration(deadline: Duration) -> Self
Converts a duration-valued absolute timestamp using Linux
timespec64_to_ktime() saturation.
Trait Implementations§
Source§impl Clone for MonotonicDeadline
impl Clone for MonotonicDeadline
Source§fn clone(&self) -> MonotonicDeadline
fn clone(&self) -> MonotonicDeadline
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 MonotonicDeadline
Source§impl Debug for MonotonicDeadline
impl Debug for MonotonicDeadline
impl Eq for MonotonicDeadline
Source§impl Ord for MonotonicDeadline
impl Ord for MonotonicDeadline
Source§fn cmp(&self, other: &MonotonicDeadline) -> Ordering
fn cmp(&self, other: &MonotonicDeadline) -> 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 MonotonicDeadline
impl PartialEq for MonotonicDeadline
Source§impl PartialOrd for MonotonicDeadline
impl PartialOrd for MonotonicDeadline
impl StructuralPartialEq for MonotonicDeadline
Auto Trait Implementations§
impl Freeze for MonotonicDeadline
impl RefUnwindSafe for MonotonicDeadline
impl Send for MonotonicDeadline
impl Sync for MonotonicDeadline
impl Unpin for MonotonicDeadline
impl UnsafeUnpin for MonotonicDeadline
impl UnwindSafe for MonotonicDeadline
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