pub enum ServerPacket {
ReliableEvent {
session: u64,
event: EventPacket,
},
Welcome {
nonce: u64,
session: u64,
player_id: u8,
tick: u32,
},
Snapshot(Snapshot),
}Variants§
Trait Implementations§
Source§impl Clone for ServerPacket
impl Clone for ServerPacket
Source§fn clone(&self) -> ServerPacket
fn clone(&self) -> ServerPacket
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 ServerPacket
impl Debug for ServerPacket
Source§impl PartialEq for ServerPacket
impl PartialEq for ServerPacket
impl StructuralPartialEq for ServerPacket
Auto Trait Implementations§
impl Freeze for ServerPacket
impl RefUnwindSafe for ServerPacket
impl Send for ServerPacket
impl Sync for ServerPacket
impl Unpin for ServerPacket
impl UnwindSafe for ServerPacket
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