pub enum CommandLifecycleState {
Queued,
Started,
Completed,
Cancelled,
Discarded,
Unknown(String),
}Expand description
Lifecycle state carried by a CommandLifecycleMessage.
Variants§
Queued
The inbound message entered the command queue.
Started
The command drained into a turn.
Completed
The turn that consumed the command ended cleanly.
Cancelled
Removed by cancel, caught before dispatch, or consumed into a turn that was aborted or died on a hard failure.
Discarded
The session ended with the command still queued.
Unknown(String)
A state not yet known to this version of the crate.
Implementations§
Trait Implementations§
Source§impl Clone for CommandLifecycleState
impl Clone for CommandLifecycleState
Source§fn clone(&self) -> CommandLifecycleState
fn clone(&self) -> CommandLifecycleState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CommandLifecycleState
impl Debug for CommandLifecycleState
Source§impl<'de> Deserialize<'de> for CommandLifecycleState
impl<'de> Deserialize<'de> for CommandLifecycleState
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for CommandLifecycleState
impl Display for CommandLifecycleState
impl Eq for CommandLifecycleState
Source§impl From<&str> for CommandLifecycleState
impl From<&str> for CommandLifecycleState
Source§impl Hash for CommandLifecycleState
impl Hash for CommandLifecycleState
Source§impl PartialEq for CommandLifecycleState
impl PartialEq for CommandLifecycleState
Source§impl Serialize for CommandLifecycleState
impl Serialize for CommandLifecycleState
impl StructuralPartialEq for CommandLifecycleState
Auto Trait Implementations§
impl Freeze for CommandLifecycleState
impl RefUnwindSafe for CommandLifecycleState
impl Send for CommandLifecycleState
impl Sync for CommandLifecycleState
impl Unpin for CommandLifecycleState
impl UnsafeUnpin for CommandLifecycleState
impl UnwindSafe for CommandLifecycleState
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