pub struct Login {
pub success: bool,
pub id: Player,
pub team: Team,
pub clock: u32,
pub token: BString,
pub ty: GameType,
pub room: BString,
pub players: Vec<LoginPlayer>,
}Expand description
Initial Login packet sent to the server
Fields§
§success: bool§id: Player§team: Team§clock: u32§token: BString§ty: GameType§room: BString§players: Vec<LoginPlayer>Trait Implementations§
Source§impl<'de> DeserializeV5<'de> for Login
impl<'de> DeserializeV5<'de> for Login
fn deserialize(de: &mut AirmashDeserializerV5<'de>) -> Result<Self>
Source§impl From<Login> for ServerPacket
impl From<Login> for ServerPacket
Source§impl SerializeV5 for Login
impl SerializeV5 for Login
fn serialize<'ser>(&self, ser: &mut AirmashSerializerV5<'ser>) -> Result
Auto Trait Implementations§
impl Freeze for Login
impl RefUnwindSafe for Login
impl Send for Login
impl Sync for Login
impl Unpin for Login
impl UnwindSafe for Login
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