pub enum ControlWord {
Cancel,
Recycle,
}Expand description
The operator’s word one note is the record of.
cancel and recycle are the two commands that reach a live task, and each
word carries both halves of what a note is for: the ending it gives the work,
and the string a refusal of that task’s delivery row is written with. The note
holds the word rather than the verdict it stands for, because the verdict does
not name the word back — failed is only the fallback a recycle leaves when
nothing answers it — and the column the refusal lands in has to read what the
operator actually said.
Variants§
Cancel
cancel: the work ends now, and the task reads cancelled.
Recycle
recycle: the plugin is asked for its own ending. It prescribes no
outcome, so a word nothing answers leaves the task failed.
Implementations§
Source§impl ControlWord
impl ControlWord
Sourcepub fn outcome(self) -> Outcome
pub fn outcome(self) -> Outcome
The outcome this word stands for: the verdict a settle answering the note files when the plugin reports none of its own.
Sourcepub fn refusal(self) -> &'static str
pub fn refusal(self) -> &'static str
The word as the refusal that names it reads on the wire.
operator cancel and operator recycle stand in the same column as the
operator close and operator ack an operator’s other verbs already wrote
there, and each names the command that was given rather than the verdict it
left behind.
Trait Implementations§
Source§impl Clone for ControlWord
impl Clone for ControlWord
impl Copy for ControlWord
Source§impl Debug for ControlWord
impl Debug for ControlWord
impl Eq for ControlWord
Source§impl PartialEq for ControlWord
impl PartialEq for ControlWord
impl StructuralPartialEq for ControlWord
Auto Trait Implementations§
impl Freeze for ControlWord
impl RefUnwindSafe for ControlWord
impl Send for ControlWord
impl Sync for ControlWord
impl Unpin for ControlWord
impl UnsafeUnpin for ControlWord
impl UnwindSafe for ControlWord
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.