pub struct MockPoller(/* private fields */);Expand description
the poller of a device made with Device::mock_medius_manual, ticked by hand so a test doesn’t wait on its
timing
Implementations§
Source§impl MockPoller
impl MockPoller
Sourcepub fn tick(&mut self)
pub fn tick(&mut self)
one poller round, what runs every 250 ms on a real device. the clone and the box drop counter are only looked at every fourth round, and the mock keeps its own timers (a detach waits 250 ms before it counts, a restarted clone comes back after 100 ms), so a test still waits for those
Auto Trait Implementations§
impl Freeze for MockPoller
impl RefUnwindSafe for MockPoller
impl Send for MockPoller
impl Sync for MockPoller
impl Unpin for MockPoller
impl UnsafeUnpin for MockPoller
impl UnwindSafe for MockPoller
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