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