pub struct NoTimerClock;Expand description
A clock without timers: sleeps complete immediately and timeouts are not enforced. Useful for tests and for executors without a timer facility.
Trait Implementations§
Source§impl Clock for NoTimerClock
impl Clock for NoTimerClock
Source§impl Clone for NoTimerClock
impl Clone for NoTimerClock
impl Copy for NoTimerClock
Source§impl Debug for NoTimerClock
impl Debug for NoTimerClock
Auto Trait Implementations§
impl Forget for NoTimerClock
impl Freeze for NoTimerClock
impl Move for NoTimerClock
impl RefUnwindSafe for NoTimerClock
impl Send for NoTimerClock
impl Sync for NoTimerClock
impl Unpin for NoTimerClock
impl UnsafeUnpin for NoTimerClock
impl UnwindSafe for NoTimerClock
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