pub struct PlayerRespawn {
pub id: Player,
pub pos: Position,
pub rot: Rotation,
pub upgrades: Upgrades,
}Expand description
Packet for when a player respawns.
Fields§
§id: Player§pos: Position§rot: Rotation§upgrades: UpgradesTrait Implementations§
Source§impl Clone for PlayerRespawn
impl Clone for PlayerRespawn
Source§fn clone(&self) -> PlayerRespawn
fn clone(&self) -> PlayerRespawn
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 PlayerRespawn
impl Debug for PlayerRespawn
Source§impl<'de> DeserializeV5<'de> for PlayerRespawn
impl<'de> DeserializeV5<'de> for PlayerRespawn
fn deserialize(de: &mut AirmashDeserializerV5<'de>) -> Result<Self>
Source§impl From<PlayerRespawn> for ServerPacket
impl From<PlayerRespawn> for ServerPacket
Source§fn from(v: PlayerRespawn) -> Self
fn from(v: PlayerRespawn) -> Self
Converts to this type from the input type.
Source§impl SerializeV5 for PlayerRespawn
impl SerializeV5 for PlayerRespawn
fn serialize<'ser>(&self, ser: &mut AirmashSerializerV5<'ser>) -> Result
impl Copy for PlayerRespawn
Auto Trait Implementations§
impl Freeze for PlayerRespawn
impl RefUnwindSafe for PlayerRespawn
impl Send for PlayerRespawn
impl Sync for PlayerRespawn
impl Unpin for PlayerRespawn
impl UnwindSafe for PlayerRespawn
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