pub struct Timer { /* private fields */ }Implementations§
Source§impl Timer
impl Timer
pub fn new(spawn_blocking: bool) -> Timer
pub fn start(&mut self, spawn_blocking: bool)
pub async fn start_async(&mut self, spawn_blocking: bool)
pub fn stop(&mut self)
pub async fn stop_async(&mut self)
pub fn add(&self, event: TimedEvent)
pub async fn add_async(&self, event: TimedEvent)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Timer
impl !RefUnwindSafe for Timer
impl Send for Timer
impl Sync for Timer
impl Unpin for Timer
impl !UnwindSafe for Timer
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