#[non_exhaustive]pub enum PlayerStatus {
Alive,
Dead,
Unknown(u8),
}Expand description
Flag for indicating whether a player is alive or dead.
This is used in the following packets:
Login(specificallyLoginPlayer)PlayerNew
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.
Trait Implementations§
Source§impl Clone for PlayerStatus
impl Clone for PlayerStatus
Source§fn clone(&self) -> PlayerStatus
fn clone(&self) -> PlayerStatus
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PlayerStatus
impl Debug for PlayerStatus
Source§impl Default for PlayerStatus
impl Default for PlayerStatus
Source§impl<'de> DeserializeV5<'de> for PlayerStatus
impl<'de> DeserializeV5<'de> for PlayerStatus
fn deserialize(de: &mut AirmashDeserializerV5<'de>) -> Result<Self, Error>
Source§impl From<PlayerStatus> for u8
impl From<PlayerStatus> for u8
Source§fn from(v: PlayerStatus) -> Self
fn from(v: PlayerStatus) -> Self
Converts to this type from the input type.
Source§impl From<u8> for PlayerStatus
impl From<u8> for PlayerStatus
Source§impl Hash for PlayerStatus
impl Hash for PlayerStatus
Source§impl PartialEq for PlayerStatus
impl PartialEq for PlayerStatus
Source§impl SerializeV5 for PlayerStatus
impl SerializeV5 for PlayerStatus
impl Copy for PlayerStatus
impl Eq for PlayerStatus
impl StructuralPartialEq for PlayerStatus
Auto Trait Implementations§
impl Freeze for PlayerStatus
impl RefUnwindSafe for PlayerStatus
impl Send for PlayerStatus
impl Sync for PlayerStatus
impl Unpin for PlayerStatus
impl UnwindSafe for PlayerStatus
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