pub enum ControlSignal {
Cancel,
Interrupt,
}Expand description
Control signal for a thread’s mailbox.
Variants§
Cancel
Cancel the active run but keep pending entries.
Interrupt
Cancel the active run, clear all pending entries, and bump generation.
Trait Implementations§
Source§impl Clone for ControlSignal
impl Clone for ControlSignal
Source§fn clone(&self) -> ControlSignal
fn clone(&self) -> ControlSignal
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 moreAuto Trait Implementations§
impl Freeze for ControlSignal
impl RefUnwindSafe for ControlSignal
impl Send for ControlSignal
impl Sync for ControlSignal
impl Unpin for ControlSignal
impl UnwindSafe for ControlSignal
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