pub struct LoginPlayer {
pub id: Player,
pub status: PlayerStatus,
pub level: Level,
pub name: BString,
pub ty: PlaneType,
pub team: Team,
pub pos: Position,
pub rot: Rotation,
pub flag: FlagCode,
pub upgrades: Upgrades,
}Expand description
Initial data passed in for a player when the server starts.
This is an element of the players array within the Login packet.
Fields§
§id: Player§status: PlayerStatus§level: Level§name: BString§ty: PlaneType§team: Team§pos: Position§rot: Rotation§flag: FlagCode§upgrades: UpgradesTrait Implementations§
Source§impl Clone for LoginPlayer
impl Clone for LoginPlayer
Source§fn clone(&self) -> LoginPlayer
fn clone(&self) -> LoginPlayer
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 LoginPlayer
impl Debug for LoginPlayer
Source§impl<'de> DeserializeV5<'de> for LoginPlayer
impl<'de> DeserializeV5<'de> for LoginPlayer
fn deserialize(de: &mut AirmashDeserializerV5<'de>) -> Result<Self>
Source§impl SerializeV5 for LoginPlayer
impl SerializeV5 for LoginPlayer
fn serialize<'ser>(&self, ser: &mut AirmashSerializerV5<'ser>) -> Result
Auto Trait Implementations§
impl Freeze for LoginPlayer
impl RefUnwindSafe for LoginPlayer
impl Send for LoginPlayer
impl Sync for LoginPlayer
impl Unpin for LoginPlayer
impl UnwindSafe for LoginPlayer
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