pub struct TimerDeadLine(/* private fields */);Expand description
A newtype representing a DeadlineTimer deadline.
Implementations§
Source§impl TimerDeadLine
impl TimerDeadLine
Sourcepub const fn from_duration(duration: Duration) -> Self
pub const fn from_duration(duration: Duration) -> Self
Creates a deadline from the specified duration.
Sourcepub const fn as_duration(self) -> Duration
pub const fn as_duration(self) -> Duration
Retrieves the stored duration.
Trait Implementations§
Source§impl Clone for TimerDeadLine
impl Clone for TimerDeadLine
Source§fn clone(&self) -> TimerDeadLine
fn clone(&self) -> TimerDeadLine
Returns a duplicate 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 TimerDeadLine
impl Debug for TimerDeadLine
Source§impl From<Duration> for TimerDeadLine
impl From<Duration> for TimerDeadLine
Source§impl From<TimerDeadLine> for Duration
impl From<TimerDeadLine> for Duration
Source§fn from(value: TimerDeadLine) -> Self
fn from(value: TimerDeadLine) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TimerDeadLine
impl PartialEq for TimerDeadLine
impl Copy for TimerDeadLine
impl Eq for TimerDeadLine
impl StructuralPartialEq for TimerDeadLine
Auto Trait Implementations§
impl Freeze for TimerDeadLine
impl RefUnwindSafe for TimerDeadLine
impl Send for TimerDeadLine
impl Sync for TimerDeadLine
impl Unpin for TimerDeadLine
impl UnwindSafe for TimerDeadLine
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