pub struct AbortHandle { /* private fields */ }Expand description
A cancellation handle detached from a JoinFuture — the mirror of
tokio::task::AbortHandle. Cloneable and non-generic, so it can be stored in
heterogeneous collections (as ca/pva store AbortHandles).
Implementations§
Source§impl AbortHandle
impl AbortHandle
Sourcepub fn is_finished(&self) -> bool
pub fn is_finished(&self) -> bool
true once the task has finished — mirrors
tokio::task::AbortHandle::is_finished.
Trait Implementations§
Source§impl Clone for AbortHandle
impl Clone for AbortHandle
Source§fn clone(&self) -> AbortHandle
fn clone(&self) -> AbortHandle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AbortHandle
impl RefUnwindSafe for AbortHandle
impl Send for AbortHandle
impl Sync for AbortHandle
impl Unpin for AbortHandle
impl UnsafeUnpin for AbortHandle
impl UnwindSafe for AbortHandle
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