pub struct TurnCancellation { /* private fields */ }Implementations§
Source§impl TurnCancellation
impl TurnCancellation
pub fn new(handle: CancellationHandle) -> Self
pub fn generation(&self) -> u64
pub fn is_cancelled(&self) -> bool
pub async fn cancelled(&self)
pub fn handle(&self) -> &CancellationHandle
Trait Implementations§
Source§impl Clone for TurnCancellation
impl Clone for TurnCancellation
Source§fn clone(&self) -> TurnCancellation
fn clone(&self) -> TurnCancellation
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 TurnCancellation
impl Default for TurnCancellation
Source§fn default() -> TurnCancellation
fn default() -> TurnCancellation
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TurnCancellation
impl RefUnwindSafe for TurnCancellation
impl Send for TurnCancellation
impl Sync for TurnCancellation
impl Unpin for TurnCancellation
impl UnsafeUnpin for TurnCancellation
impl UnwindSafe for TurnCancellation
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