pub struct Interrupt { /* private fields */ }Expand description
The half of a cancellation an approver can wait on.
Cloneable, so a turn’s approver and anything else parked on the client can
each hold one; wait resolves once for all of them when the
turn is cancelled, and resolves at once if it already was — a stop pressed
before the question was asked is still a stop.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Interrupt
impl !UnwindSafe for Interrupt
impl Freeze for Interrupt
impl Send for Interrupt
impl Sync for Interrupt
impl Unpin for Interrupt
impl UnsafeUnpin for Interrupt
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