#[non_exhaustive]pub enum AnswerProgress {
Running,
Done,
Failed,
Closed,
}Expand description
How far the first answer to a card got, when a second one arrives.
Four and not two, because each is a different sentence and the difference is what the user came back for. “I am still working on it” must not invite a third click; “I already did that” is what somebody who missed the first reply wants to hear; and a card whose work failed or was closed must not be described as done.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Running
The commands the first answer authorized are still running.
Done
They committed. Their events are surfaced as this turn’s receipts.
Failed
They failed, so the work the card offered did not happen.
Closed
The card was closed without doing that work — declined, dismissed, invalidated or expired.
Implementations§
Source§impl AnswerProgress
impl AnswerProgress
Sourcepub const fn of(status: InteractionStatus) -> Self
pub const fn of(status: InteractionStatus) -> Self
How far a card in status got.
Matched exhaustively so a status added later has to be placed here rather than falling into whichever arm is nearest.
Trait Implementations§
Source§impl Clone for AnswerProgress
impl Clone for AnswerProgress
impl Copy for AnswerProgress
Source§impl Debug for AnswerProgress
impl Debug for AnswerProgress
Source§impl<'de> Deserialize<'de> for AnswerProgress
impl<'de> Deserialize<'de> for AnswerProgress
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>,
impl Eq for AnswerProgress
Source§impl Hash for AnswerProgress
impl Hash for AnswerProgress
Source§impl PartialEq for AnswerProgress
impl PartialEq for AnswerProgress
Source§impl Serialize for AnswerProgress
impl Serialize for AnswerProgress
impl StructuralPartialEq for AnswerProgress
Auto Trait Implementations§
impl Freeze for AnswerProgress
impl RefUnwindSafe for AnswerProgress
impl Send for AnswerProgress
impl Sync for AnswerProgress
impl Unpin for AnswerProgress
impl UnsafeUnpin for AnswerProgress
impl UnwindSafe for AnswerProgress
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
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.