pub struct SimpleCancelToken { /* private fields */ }
Expand description
A simple cancel token implementation
Implementations§
Trait Implementations§
Source§impl CancelToken for SimpleCancelToken
Integrate with mssf trait system.
impl CancelToken for SimpleCancelToken
Integrate with mssf trait system.
Source§fn is_cancelled(&self) -> bool
fn is_cancelled(&self) -> bool
Is the token cancelled
Source§fn clone_box(&self) -> Box<dyn CancelToken>
fn clone_box(&self) -> Box<dyn CancelToken>
Clone the cancel token.
Because the dyn requirement, CancelToken cannot be cloned directly.
Source§impl Clone for SimpleCancelToken
impl Clone for SimpleCancelToken
Source§fn clone(&self) -> SimpleCancelToken
fn clone(&self) -> SimpleCancelToken
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 moreSource§impl Debug for SimpleCancelToken
impl Debug for SimpleCancelToken
Auto Trait Implementations§
impl Freeze for SimpleCancelToken
impl RefUnwindSafe for SimpleCancelToken
impl Send for SimpleCancelToken
impl Sync for SimpleCancelToken
impl Unpin for SimpleCancelToken
impl UnwindSafe for SimpleCancelToken
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