pub struct BlockingTimer { /* private fields */ }
Expand description
A mock timer that will notify a channel when creating a timer.
Implementations§
Source§impl BlockingTimer
impl BlockingTimer
Sourcepub fn new() -> (Self, Receiver<BlockedTimer>)
pub fn new() -> (Self, Receiver<BlockedTimer>)
Returns a new BlockingTimer and a channel to receive BlockedTimer instances.
Trait Implementations§
Source§impl Debug for BlockingTimer
impl Debug for BlockingTimer
Source§impl Timer for BlockingTimer
impl Timer for BlockingTimer
Auto Trait Implementations§
impl Freeze for BlockingTimer
impl !RefUnwindSafe for BlockingTimer
impl Send for BlockingTimer
impl Sync for BlockingTimer
impl Unpin for BlockingTimer
impl !UnwindSafe for BlockingTimer
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