pub struct TickTimeout<T: TickInstant> { /* private fields */ }Implementations§
Source§impl<T> TickTimeout<T>where
T: TickInstant,
impl<T> TickTimeout<T>where
T: TickInstant,
pub fn nanos(timeout: u32) -> Self
pub fn micros(timeout: u32) -> Self
pub fn millis(timeout: u32) -> Self
pub fn from_duration(timeout: &TickDuration<T>) -> Self
pub fn new(timeout: TickDuration<T>) -> Self
pub fn restart(&mut self)
pub fn time_left(&mut self) -> TickDuration<T>
Auto Trait Implementations§
impl<T> Freeze for TickTimeout<T>where
T: Freeze,
impl<T> RefUnwindSafe for TickTimeout<T>where
T: RefUnwindSafe,
impl<T> Send for TickTimeout<T>where
T: Send,
impl<T> Sync for TickTimeout<T>where
T: Sync,
impl<T> Unpin for TickTimeout<T>where
T: Unpin,
impl<T> UnwindSafe for TickTimeout<T>where
T: UnwindSafe,
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