pub enum CeremonyInterventionIntent {
Question,
Feedback,
Constraint,
Checkpoint,
}Expand description
What a supervisor wants back from the agent it interrupted.
Separate from CeremonyInterventionKind, which says what sort of
work the item is. The intent says what the interruption is for, so
a host reading a delivery can tell an open question from a standing
constraint without reading the prose and guessing.
Variants§
Question
An answer is wanted before the work goes on.
Feedback
An observation on work already done; no answer is required.
Constraint
A rule the rest of the work has to respect.
Checkpoint
A pause to confirm the work is still going the right way.
Implementations§
Source§impl CeremonyInterventionIntent
impl CeremonyInterventionIntent
pub const fn as_str(self) -> &'static str
Sourcepub const fn expects_response(self) -> bool
pub const fn expects_response(self) -> bool
Whether leaving this unanswered leaves something unresolved.
Feedback and a constraint are told, not asked: a host that has taken them has finished with them. A question and a checkpoint are open until somebody answers.
Trait Implementations§
Source§impl Clone for CeremonyInterventionIntent
impl Clone for CeremonyInterventionIntent
impl Copy for CeremonyInterventionIntent
Source§impl Debug for CeremonyInterventionIntent
impl Debug for CeremonyInterventionIntent
Source§impl<'de> Deserialize<'de> for CeremonyInterventionIntent
impl<'de> Deserialize<'de> for CeremonyInterventionIntent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for CeremonyInterventionIntent
impl Display for CeremonyInterventionIntent
impl Eq for CeremonyInterventionIntent
Source§impl Hash for CeremonyInterventionIntent
impl Hash for CeremonyInterventionIntent
Source§impl Ord for CeremonyInterventionIntent
impl Ord for CeremonyInterventionIntent
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for CeremonyInterventionIntent
impl PartialOrd for CeremonyInterventionIntent
impl StructuralPartialEq for CeremonyInterventionIntent
Auto Trait Implementations§
impl Freeze for CeremonyInterventionIntent
impl RefUnwindSafe for CeremonyInterventionIntent
impl Send for CeremonyInterventionIntent
impl Sync for CeremonyInterventionIntent
impl Unpin for CeremonyInterventionIntent
impl UnsafeUnpin for CeremonyInterventionIntent
impl UnwindSafe for CeremonyInterventionIntent
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