Struct tokio_switching_sleep::ASwitchingSleep [−][src]
pub struct ASwitchingSleep(_);
Expand description
The Sync
one.
Implementations
impl ASwitchingSleep
[src]
impl ASwitchingSleep
[src]pub fn new(period: Duration) -> Self
[src]
pub fn new(period: Duration) -> Self
[src]Create a new ASwitchingSleep
and doesn’t start the timer.
pub async fn new_start(period: Duration) -> Self
[src]
pub async fn new_start(period: Duration) -> Self
[src]Create a new ASwitchingSleep
and start the timer.
pub async fn is_elapsed(&self) -> bool
[src]
pub async fn is_elapsed(&self) -> bool
[src]Check if the timer (if any) is elapsed.
Trait Implementations
impl Clone for ASwitchingSleep
[src]
impl Clone for ASwitchingSleep
[src]impl Debug for ASwitchingSleep
[src]
impl Debug for ASwitchingSleep
[src]impl Future for ASwitchingSleep
[src]
impl Future for ASwitchingSleep
[src]impl Send for ASwitchingSleep
[src]
impl Sync for ASwitchingSleep
[src]
impl Unpin for ASwitchingSleep
[src]
Auto Trait Implementations
impl !RefUnwindSafe for ASwitchingSleep
impl !UnwindSafe for ASwitchingSleep
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<F> IntoFuture for F where
F: Future,
[src]
impl<F> IntoFuture for F where
F: Future,
[src]type Output = <F as Future>::Output
type Output = <F as Future>::Output
🔬 This is a nightly-only experimental API. (
into_future
)The output that the future will produce on completion.
type Future = F
type Future = F
🔬 This is a nightly-only experimental API. (
into_future
)Which kind of future are we turning this into?
pub fn into_future(self) -> <F as IntoFuture>::Future
[src]
pub fn into_future(self) -> <F as IntoFuture>::Future
[src]🔬 This is a nightly-only experimental API. (
into_future
)Creates a future from a value.
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more