pub struct ProcessCancellation(/* private fields */);Expand description
Cooperative cancellation token shared with the platform adapter.
Implementations§
Source§impl ProcessCancellation
impl ProcessCancellation
Sourcepub fn is_cancelled(&self) -> bool
pub fn is_cancelled(&self) -> bool
Reports whether cancellation was requested.
Trait Implementations§
Source§impl Clone for ProcessCancellation
impl Clone for ProcessCancellation
Source§fn clone(&self) -> ProcessCancellation
fn clone(&self) -> ProcessCancellation
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 ProcessCancellation
impl Debug for ProcessCancellation
Source§impl Default for ProcessCancellation
impl Default for ProcessCancellation
Source§fn default() -> ProcessCancellation
fn default() -> ProcessCancellation
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ProcessCancellation
impl RefUnwindSafe for ProcessCancellation
impl Send for ProcessCancellation
impl Sync for ProcessCancellation
impl Unpin for ProcessCancellation
impl UnsafeUnpin for ProcessCancellation
impl UnwindSafe for ProcessCancellation
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