pub struct TestClockInstaller { /* private fields */ }Expand description
Installer for the test clock.
Registers a Clock resource and returns a TestClockPoller.
Implementations§
Source§impl TestClockInstaller
impl TestClockInstaller
Sourcepub fn starting_at(nanos: i128) -> Self
pub fn starting_at(nanos: i128) -> Self
Creates an installer starting at the given UTC nanos.
Trait Implementations§
Source§impl Debug for TestClockInstaller
impl Debug for TestClockInstaller
Source§impl Default for TestClockInstaller
impl Default for TestClockInstaller
Source§impl Installer for TestClockInstaller
impl Installer for TestClockInstaller
Source§type Poller = TestClockPoller
type Poller = TestClockPoller
The concrete poller returned after installation.
Source§fn install(self, world: &mut WorldBuilder) -> TestClockPoller
fn install(self, world: &mut WorldBuilder) -> TestClockPoller
Register resources into the world and return a poller for dispatch.
Auto Trait Implementations§
impl Freeze for TestClockInstaller
impl RefUnwindSafe for TestClockInstaller
impl Send for TestClockInstaller
impl Sync for TestClockInstaller
impl Unpin for TestClockInstaller
impl UnsafeUnpin for TestClockInstaller
impl UnwindSafe for TestClockInstaller
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