pub struct SimpleCancellationToken { /* private fields */ }Expand description
An ultra-simple cancellation token that can be cloned and shared across threads.
Implementations§
Trait Implementations§
Source§impl Clone for SimpleCancellationToken
impl Clone for SimpleCancellationToken
Source§fn clone(&self) -> SimpleCancellationToken
fn clone(&self) -> SimpleCancellationToken
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 moreAuto Trait Implementations§
impl Freeze for SimpleCancellationToken
impl RefUnwindSafe for SimpleCancellationToken
impl Send for SimpleCancellationToken
impl Sync for SimpleCancellationToken
impl Unpin for SimpleCancellationToken
impl UnsafeUnpin for SimpleCancellationToken
impl UnwindSafe for SimpleCancellationToken
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