pub struct StepRuntime { /* private fields */ }Expand description
The test runtime handle: collects tasks for the pool and registers timers on the virtual clock.
Implementations§
Source§impl StepRuntime
impl StepRuntime
Sourcepub fn new(clock: Arc<VirtualClock>) -> Arc<Self> ⓘ
pub fn new(clock: Arc<VirtualClock>) -> Arc<Self> ⓘ
A runtime whose timers register on clock and whose tasks wait for
a TestExecutor to drain them.
Trait Implementations§
Source§impl Debug for StepRuntime
impl Debug for StepRuntime
Source§impl Runtime for StepRuntime
impl Runtime for StepRuntime
Auto Trait Implementations§
impl !Freeze for StepRuntime
impl !RefUnwindSafe for StepRuntime
impl !UnwindSafe for StepRuntime
impl Send for StepRuntime
impl Sync for StepRuntime
impl Unpin for StepRuntime
impl UnsafeUnpin for StepRuntime
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