pub struct CancellationHandle { /* private fields */ }Expand description
Handle for cancelling a query from another thread
Implementations§
Source§impl CancellationHandle
impl CancellationHandle
Sourcepub fn is_cancelled(&self) -> bool
pub fn is_cancelled(&self) -> bool
Check if the query has been cancelled
Trait Implementations§
Source§impl CancellationProbe for CancellationHandle
impl CancellationProbe for CancellationHandle
fn is_cancelled(&self) -> bool
Source§impl Clone for CancellationHandle
impl Clone for CancellationHandle
Source§fn clone(&self) -> CancellationHandle
fn clone(&self) -> CancellationHandle
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 moreSource§impl Debug for CancellationHandle
impl Debug for CancellationHandle
Source§impl FunctionCancellation for CancellationHandle
impl FunctionCancellation for CancellationHandle
fn is_cancelled(&self) -> bool
Auto Trait Implementations§
impl Freeze for CancellationHandle
impl RefUnwindSafe for CancellationHandle
impl Send for CancellationHandle
impl Sync for CancellationHandle
impl Unpin for CancellationHandle
impl UnsafeUnpin for CancellationHandle
impl UnwindSafe for CancellationHandle
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