Struct set_timeout::CancellationToken
source · [−]pub struct CancellationToken { /* private fields */ }Expand description
A cancellation token which allows cancelling a timeout.
This token is returned from a call to TimeoutScheduler::set_timeout.
Trait Implementations
sourceimpl Clone for CancellationToken
impl Clone for CancellationToken
sourcefn clone(&self) -> CancellationToken
fn clone(&self) -> CancellationToken
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
Auto Trait Implementations
impl RefUnwindSafe for CancellationToken
impl Send for CancellationToken
impl Sync for CancellationToken
impl Unpin for CancellationToken
impl UnwindSafe for CancellationToken
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more