pub enum Wait {
Answered(String),
Replied(String),
Pending,
Abandoned,
}Expand description
How a wait over Question ended.
Variants§
Answered(String)
The owner decided. Carries Question::resolution.
Replied(String)
The owner spoke back without deciding - see Question::say. The
question is still QuestionStatus::Open and carries no Answer;
the caller’s move is to hand this text to the agent and let it call
magi ask --thread to keep talking, not to treat it as a decision.
Pending
This call’s [WAIT_SLICE] ran out with the question still
QuestionStatus::Open and nothing having happened - not the owner
going quiet, the clock on this process running out. The question is
untouched; the caller’s move is magi ask --wait <id> in a fresh
process, so the wait resumes before the shell tool that would have
killed this one gets the chance.
Abandoned
Nobody said anything before the deadline, or the question was closed
out from under the wait with no decision recorded - a run deleted out
from under it, most often. Either way QuestionStatus::Abandoned is
now on disk.
Trait Implementations§
impl Eq for Wait
impl StructuralPartialEq for Wait
Auto Trait Implementations§
impl Freeze for Wait
impl RefUnwindSafe for Wait
impl Send for Wait
impl Sync for Wait
impl Unpin for Wait
impl UnsafeUnpin for Wait
impl UnwindSafe for Wait
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
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more