Enum airmash_protocol::PlayerLevelType
source · [−]#[non_exhaustive]
pub enum PlayerLevelType {
Login,
LevelUp,
Unknown(u8),
}
Expand description
Indicate whether a player levelled up, or has just logged in and their level is being communicated to the client.
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.
Login
LevelUp
Unknown(u8)
Trait Implementations
sourceimpl Clone for PlayerLevelType
impl Clone for PlayerLevelType
sourcefn clone(&self) -> PlayerLevelType
fn clone(&self) -> PlayerLevelType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PlayerLevelType
impl Debug for PlayerLevelType
sourceimpl Default for PlayerLevelType
impl Default for PlayerLevelType
sourceimpl<'de> DeserializeV5<'de> for PlayerLevelType
impl<'de> DeserializeV5<'de> for PlayerLevelType
fn deserialize(de: &mut AirmashDeserializerV5<'de>) -> Result<Self, Error>
sourceimpl From<PlayerLevelType> for u8
impl From<PlayerLevelType> for u8
sourcefn from(v: PlayerLevelType) -> Self
fn from(v: PlayerLevelType) -> Self
Converts to this type from the input type.
sourceimpl From<u8> for PlayerLevelType
impl From<u8> for PlayerLevelType
sourceimpl Hash for PlayerLevelType
impl Hash for PlayerLevelType
sourceimpl PartialEq<PlayerLevelType> for PlayerLevelType
impl PartialEq<PlayerLevelType> for PlayerLevelType
sourcefn eq(&self, other: &PlayerLevelType) -> bool
fn eq(&self, other: &PlayerLevelType) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PlayerLevelType) -> bool
fn ne(&self, other: &PlayerLevelType) -> bool
This method tests for !=
.
sourceimpl SerializeV5 for PlayerLevelType
impl SerializeV5 for PlayerLevelType
impl Copy for PlayerLevelType
impl Eq for PlayerLevelType
impl StructuralEq for PlayerLevelType
impl StructuralPartialEq for PlayerLevelType
Auto Trait Implementations
impl RefUnwindSafe for PlayerLevelType
impl Send for PlayerLevelType
impl Sync for PlayerLevelType
impl Unpin for PlayerLevelType
impl UnwindSafe for PlayerLevelType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more