pub struct TickSession { /* private fields */ }
Implementations§
Source§impl TickSession
impl TickSession
pub fn tick(&mut self) -> Tick<'_> ⓘ
pub fn poll_tick(&mut self, cx: &mut Context<'_>) -> Poll<Instant>
pub fn cancel_tick(&mut self) -> bool
pub fn period(&self) -> Duration
pub fn last_tick(&self) -> Instant
pub fn elapsed(&self) -> Duration
pub fn time_left(&self) -> Duration
pub fn timer(&self) -> Timer
Trait Implementations§
Source§impl Clone for TickSession
impl Clone for TickSession
Source§impl Debug for TickSession
impl Debug for TickSession
Auto Trait Implementations§
impl Freeze for TickSession
impl RefUnwindSafe for TickSession
impl Send for TickSession
impl Sync for TickSession
impl Unpin for TickSession
impl UnwindSafe for TickSession
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