pub enum GameMode {
Survival,
Creative,
Adventure,
Spectator,
Other(u8),
}Expand description
Game mode.
Variants§
Survival
Survival.
Creative
Creative.
Adventure
Adventure.
Spectator
Spectator.
Other(u8)
A value this client does not know.
Implementations§
Trait Implementations§
impl Copy for GameMode
impl Eq for GameMode
impl StructuralPartialEq for GameMode
Auto Trait Implementations§
impl Forget for GameMode
impl Freeze for GameMode
impl RefUnwindSafe for GameMode
impl Send for GameMode
impl Sync for GameMode
impl Unpin for GameMode
impl UnsafeUnpin for GameMode
impl UnwindSafe for GameMode
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