pub enum TurnInputState {
PendingActive,
DeferredNextTurn,
Accepted,
Cancelled,
Completed,
}Variants§
Implementations§
Source§impl TurnInputState
impl TurnInputState
pub fn as_str(self) -> &'static str
pub fn from_wire_str(value: &str) -> Option<Self>
pub fn is_next_turn_pending(self) -> bool
Trait Implementations§
Source§impl Clone for TurnInputState
impl Clone for TurnInputState
Source§fn clone(&self) -> TurnInputState
fn clone(&self) -> TurnInputState
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 moreimpl Copy for TurnInputState
Source§impl Debug for TurnInputState
impl Debug for TurnInputState
Source§impl<'de> Deserialize<'de> for TurnInputState
impl<'de> Deserialize<'de> for TurnInputState
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 TurnInputState
Source§impl Hash for TurnInputState
impl Hash for TurnInputState
Source§impl PartialEq for TurnInputState
impl PartialEq for TurnInputState
Source§fn eq(&self, other: &TurnInputState) -> bool
fn eq(&self, other: &TurnInputState) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TurnInputState
impl Serialize for TurnInputState
impl StructuralPartialEq for TurnInputState
Auto Trait Implementations§
impl Freeze for TurnInputState
impl RefUnwindSafe for TurnInputState
impl Send for TurnInputState
impl Sync for TurnInputState
impl Unpin for TurnInputState
impl UnsafeUnpin for TurnInputState
impl UnwindSafe for TurnInputState
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