pub struct VibeioTimer;Expand description
A timer that uses vibeio’s time utilities for sleep operations.
This type implements hyper::rt::Timer and uses vibeio::time::sleep
to implement delay operations.
Trait Implementations§
Source§impl Clone for VibeioTimer
impl Clone for VibeioTimer
Source§fn clone(&self) -> VibeioTimer
fn clone(&self) -> VibeioTimer
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 Debug for VibeioTimer
impl Debug for VibeioTimer
Source§impl Default for VibeioTimer
impl Default for VibeioTimer
Source§fn default() -> VibeioTimer
fn default() -> VibeioTimer
Returns the “default value” for a type. Read more
Source§impl Timer for VibeioTimer
impl Timer for VibeioTimer
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, deadline: Instant) -> Pin<Box<dyn Sleep>>
fn sleep_until(&self, deadline: Instant) -> Pin<Box<dyn Sleep>>
Return a future that resolves at
deadline.impl Copy for VibeioTimer
Auto Trait Implementations§
impl Freeze for VibeioTimer
impl RefUnwindSafe for VibeioTimer
impl Send for VibeioTimer
impl Sync for VibeioTimer
impl Unpin for VibeioTimer
impl UnsafeUnpin for VibeioTimer
impl UnwindSafe for VibeioTimer
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