pub struct PlayerType {
pub id: Player,
pub ty: PlaneType,
}Expand description
A player has switched planes.
Fields§
§id: Player§ty: PlaneTypeTrait Implementations§
Source§impl Clone for PlayerType
impl Clone for PlayerType
Source§fn clone(&self) -> PlayerType
fn clone(&self) -> PlayerType
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 PlayerType
impl Debug for PlayerType
Source§impl<'de> DeserializeV5<'de> for PlayerType
impl<'de> DeserializeV5<'de> for PlayerType
fn deserialize(de: &mut AirmashDeserializerV5<'de>) -> Result<Self>
Source§impl From<PlayerType> for ServerPacket
impl From<PlayerType> for ServerPacket
Source§fn from(v: PlayerType) -> Self
fn from(v: PlayerType) -> Self
Converts to this type from the input type.
Source§impl SerializeV5 for PlayerType
impl SerializeV5 for PlayerType
fn serialize<'ser>(&self, ser: &mut AirmashSerializerV5<'ser>) -> Result
impl Copy for PlayerType
Auto Trait Implementations§
impl Freeze for PlayerType
impl RefUnwindSafe for PlayerType
impl Send for PlayerType
impl Sync for PlayerType
impl Unpin for PlayerType
impl UnwindSafe for PlayerType
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