pub struct Canceller { /* private fields */ }Expand description
The stop button: cancel from any thread, any number of times.
Implementations§
Source§impl Canceller
impl Canceller
Sourcepub fn cancel(&self)
pub fn cancel(&self)
Request cancellation. Takes effect at the operation’s next
checkpoint.
Sourcepub fn is_cancelled(&self) -> bool
pub fn is_cancelled(&self) -> bool
Whether cancellation has been requested.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Canceller
impl RefUnwindSafe for Canceller
impl Send for Canceller
impl Sync for Canceller
impl Unpin for Canceller
impl UnsafeUnpin for Canceller
impl UnwindSafe for Canceller
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