#[non_exhaustive]pub enum TurnStatus {
InProgress,
Completed,
Interrupted,
Failed,
Unknown,
}Expand description
How a turn is going, from its status field.
inProgress, completed, and interrupted were captured. failed comes
from the protocol schema.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InProgress
The turn is running.
Completed
The turn finished normally.
Interrupted
The turn was stopped by turn/interrupt.
Failed
The turn failed; see Turn::error.
Unknown
A status this version of the wrapper does not know.
Trait Implementations§
Source§impl Clone for TurnStatus
impl Clone for TurnStatus
impl Copy for TurnStatus
Source§impl Debug for TurnStatus
impl Debug for TurnStatus
Source§impl<'de> Deserialize<'de> for TurnStatus
impl<'de> Deserialize<'de> for TurnStatus
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 TurnStatus
Source§impl PartialEq for TurnStatus
impl PartialEq for TurnStatus
impl StructuralPartialEq for TurnStatus
Auto Trait Implementations§
impl Forget for TurnStatus
impl Freeze for TurnStatus
impl Move for TurnStatus
impl RefUnwindSafe for TurnStatus
impl Send for TurnStatus
impl Sync for TurnStatus
impl Unpin for TurnStatus
impl UnsafeUnpin for TurnStatus
impl UnwindSafe for TurnStatus
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