[][src]Enum muoxi_staging::states::ConnStates

pub enum ConnStates {
    AwaitingName,
    AwaitingPassword,
    AwaitingNewName,
    AwaitingNewPassword,
    ConfirmNewPassword,
    MainMenu,
    Playing,
    Quit,
}

Different states for connected clients

Variants

AwaitingName
AwaitingPassword
AwaitingNewName
AwaitingNewPassword
ConfirmNewPassword
MainMenu
Playing
Quit

Methods

impl ConnStates[src]

pub async fn execute<'_>(
    self,
    __arg1: &'_ mut Client,
    response: String
) -> LinesCodecResult<Self>
[src]

Validates and executes valid commands depending on Connection state Once client moves to Playing state, the list of commands available will shift from ConnState dependency to game state dependency such as (roles, level, class, etc..)

Trait Implementations

impl Clone for ConnStates[src]

impl Debug for ConnStates[src]

impl<'de> Deserialize<'de> for ConnStates[src]

impl PartialEq<ConnStates> for ConnStates[src]

impl Serialize for ConnStates[src]

impl StructuralPartialEq for ConnStates[src]

Auto Trait Implementations

impl RefUnwindSafe for ConnStates

impl Send for ConnStates

impl Sync for ConnStates

impl Unpin for ConnStates

impl UnwindSafe for ConnStates

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoSql for T

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,