#[non_exhaustive]pub struct TokioSleep;
Expand description
Implementation of AsyncSleep
for Tokio.
Implementations§
Source§impl TokioSleep
impl TokioSleep
Sourcepub fn new() -> TokioSleep
pub fn new() -> TokioSleep
Create a new AsyncSleep
implementation using the Tokio hashed wheel sleep implementation
Trait Implementations§
Source§impl AsyncSleep for TokioSleep
impl AsyncSleep for TokioSleep
Source§impl Debug for TokioSleep
impl Debug for TokioSleep
Source§impl Default for TokioSleep
impl Default for TokioSleep
Source§fn default() -> TokioSleep
fn default() -> TokioSleep
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TokioSleep
impl RefUnwindSafe for TokioSleep
impl Send for TokioSleep
impl Sync for TokioSleep
impl Unpin for TokioSleep
impl UnwindSafe for TokioSleep
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