Enum fast_protocol::datatypes::packets::State
source · pub enum State {
Handshake,
Login,
Status,
Configuration,
Playing,
}Expand description
Enum of all possible states that a connection can have while being established
Variants§
Handshake
The initial handshake used to decide if Status or Login should be the next State
Login
State used for Authentication, name specification and etc.
Status
Used to get the motd or to know the ping
Configuration
State between Login and Playing
Used to configure basic informations and variables important for the client to play on the
server
Playing
State the player is in most of the time, this state is active after Configuration and
is active till the player leaves the Server.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for State
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnwindSafe for State
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