pub struct SmolTimer { /* private fields */ }Expand description
Use the timer from [async-io].
Implementations§
Trait Implementations§
Source§impl Timer for SmolTimer
impl Timer for SmolTimer
Source§fn sleep(&self, duration: Duration) -> Pin<Box<dyn Sleep>>
fn sleep(&self, duration: Duration) -> Pin<Box<dyn Sleep>>
Return a future that resolves in
duration time.Source§fn sleep_until(&self, at: Instant) -> Pin<Box<dyn Sleep>>
fn sleep_until(&self, at: Instant) -> Pin<Box<dyn Sleep>>
Return a future that resolves at
deadline.Auto Trait Implementations§
impl Freeze for SmolTimer
impl RefUnwindSafe for SmolTimer
impl Send for SmolTimer
impl Sync for SmolTimer
impl Unpin for SmolTimer
impl UnsafeUnpin for SmolTimer
impl UnwindSafe for SmolTimer
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