pub struct FakeTickInstant { /* private fields */ }Trait Implementations§
Source§impl Clone for FakeTickInstant
impl Clone for FakeTickInstant
Source§fn clone(&self) -> FakeTickInstant
fn clone(&self) -> FakeTickInstant
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl TickInstant for FakeTickInstant
impl TickInstant for FakeTickInstant
fn frequency() -> KilohertzU32
fn now() -> Self
Source§fn elapsed(&mut self) -> TickDuration<Self>
fn elapsed(&mut self) -> TickDuration<Self>
Returns the amount of ticks elapsed since this instant.
Source§fn move_forward(&mut self, dur: &TickDuration<Self>)
fn move_forward(&mut self, dur: &TickDuration<Self>)
Move the instant forward, but it cannot be in the future.
fn timeout(&mut self, dur: &TickDuration<Self>) -> bool
fn timeout_with( &self, dur: &TickDuration<Self>, f: impl FnMut() -> bool, ) -> bool
fn time_left(&mut self, dur: &TickDuration<Self>) -> TickDuration<Self>
Auto Trait Implementations§
impl Freeze for FakeTickInstant
impl RefUnwindSafe for FakeTickInstant
impl Send for FakeTickInstant
impl Sync for FakeTickInstant
impl Unpin for FakeTickInstant
impl UnwindSafe for FakeTickInstant
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