#[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.
Trait Implementations§
Source§impl Clone for PlayerLevelType
impl Clone for PlayerLevelType
Source§fn clone(&self) -> PlayerLevelType
fn clone(&self) -> PlayerLevelType
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 PlayerLevelType
impl Debug for PlayerLevelType
Source§impl Default for PlayerLevelType
impl Default for PlayerLevelType
Source§impl<'de> DeserializeV5<'de> for PlayerLevelType
impl<'de> DeserializeV5<'de> for PlayerLevelType
fn deserialize(de: &mut AirmashDeserializerV5<'de>) -> Result<Self, Error>
Source§impl From<PlayerLevelType> for u8
impl From<PlayerLevelType> for u8
Source§fn from(v: PlayerLevelType) -> Self
fn from(v: PlayerLevelType) -> Self
Converts to this type from the input type.
Source§impl From<u8> for PlayerLevelType
impl From<u8> for PlayerLevelType
Source§impl Hash for PlayerLevelType
impl Hash for PlayerLevelType
Source§impl PartialEq for PlayerLevelType
impl PartialEq for PlayerLevelType
Source§impl SerializeV5 for PlayerLevelType
impl SerializeV5 for PlayerLevelType
impl Copy for PlayerLevelType
impl Eq for PlayerLevelType
impl StructuralPartialEq for PlayerLevelType
Auto Trait Implementations§
impl Freeze for PlayerLevelType
impl RefUnwindSafe for PlayerLevelType
impl Send for PlayerLevelType
impl Sync for PlayerLevelType
impl Unpin for PlayerLevelType
impl UnwindSafe for PlayerLevelType
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