pub struct CancellationHandle { /* private fields */ }Implementations§
Source§impl CancellationHandle
impl CancellationHandle
pub fn generation(&self) -> u64
pub fn checkpoint(&self) -> TurnCancellation
pub fn is_cancelled_since(&self, generation: u64) -> bool
pub async fn cancelled_since(&self, generation: u64)
Trait Implementations§
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 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for CancellationHandle
impl Default for CancellationHandle
Source§fn default() -> CancellationHandle
fn default() -> CancellationHandle
Returns the “default value” for a type. Read more
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