pub struct GamePacket {
pub id: u16,
pub header: Vec<u8>,
pub data: Vec<u8>,
pub source: PacketSource,
}Expand description
Represents a processed game packet.
Fields§
§id: u16§header: Vec<u8>§data: Vec<u8>§source: PacketSourceTrait Implementations§
Source§impl Clone for GamePacket
impl Clone for GamePacket
Source§fn clone(&self) -> GamePacket
fn clone(&self) -> GamePacket
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 GamePacket
impl Debug for GamePacket
Auto Trait Implementations§
impl Freeze for GamePacket
impl RefUnwindSafe for GamePacket
impl Send for GamePacket
impl Sync for GamePacket
impl Unpin for GamePacket
impl UnsafeUnpin for GamePacket
impl UnwindSafe for GamePacket
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