pub struct StdTickInstant(/* private fields */);Trait Implementations§
Source§impl Clone for StdTickInstant
impl Clone for StdTickInstant
Source§fn clone(&self) -> StdTickInstant
fn clone(&self) -> StdTickInstant
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 StdTickInstant
impl TickInstant for StdTickInstant
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 StdTickInstant
impl RefUnwindSafe for StdTickInstant
impl Send for StdTickInstant
impl Sync for StdTickInstant
impl Unpin for StdTickInstant
impl UnwindSafe for StdTickInstant
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