pub struct SharedTimer(pub Arc<dyn Timer + Send + Sync>);Tuple Fields§
§0: Arc<dyn Timer + Send + Sync>Implementations§
Trait Implementations§
Source§fn clone(&self) -> SharedTimer
fn clone(&self) -> SharedTimer
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§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.Auto Trait Implementations§
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