pub enum Outcome {
Waiting,
Answered,
Failed,
}Expand description
What a tool call has come to so far.
Three states rather than a bool and an Option: a call still
running and a call that failed are different things to a person
deciding whether to step in, and the pair could spell a fourth state
that cannot happen.
Variants§
Waiting
Called, and no result has arrived in this window.
Answered
Answered.
Failed
Answered with an error. Not an alert: one failed call is a fact, not a request for a person. If it actually stopped the session, the freeze raises its own card.
Trait Implementations§
impl Copy for Outcome
Source§impl<'de> Deserialize<'de> for Outcome
impl<'de> Deserialize<'de> for Outcome
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
impl Eq for Outcome
impl StructuralPartialEq for Outcome
Auto Trait Implementations§
impl Freeze for Outcome
impl RefUnwindSafe for Outcome
impl Send for Outcome
impl Sync for Outcome
impl Unpin for Outcome
impl UnsafeUnpin for Outcome
impl UnwindSafe for Outcome
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