pub enum BackendCancellationCapability {
None,
CooperativeToken,
RemoteAbort,
CooperativeTokenAndRemoteAbort,
}Expand description
How a backend can be interrupted after execution starts.
Variants§
Implementations§
Source§impl BackendCancellationCapability
impl BackendCancellationCapability
pub const fn supports_cooperative_token(self) -> bool
pub const fn supports_remote_abort(self) -> bool
Trait Implementations§
Source§impl Clone for BackendCancellationCapability
impl Clone for BackendCancellationCapability
Source§fn clone(&self) -> BackendCancellationCapability
fn clone(&self) -> BackendCancellationCapability
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 PartialEq for BackendCancellationCapability
impl PartialEq for BackendCancellationCapability
Source§fn eq(&self, other: &BackendCancellationCapability) -> bool
fn eq(&self, other: &BackendCancellationCapability) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for BackendCancellationCapability
impl Eq for BackendCancellationCapability
impl StructuralPartialEq for BackendCancellationCapability
Auto Trait Implementations§
impl Freeze for BackendCancellationCapability
impl RefUnwindSafe for BackendCancellationCapability
impl Send for BackendCancellationCapability
impl Sync for BackendCancellationCapability
impl Unpin for BackendCancellationCapability
impl UnsafeUnpin for BackendCancellationCapability
impl UnwindSafe for BackendCancellationCapability
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.