pub struct PacketData {
pub protocol_version: u32,
pub packet_id: i32,
pub direction: PacketDirection,
pub data: Bytes,
pub player_uuid: Option<Uuid>,
}Fields§
§protocol_version: u32§packet_id: i32§direction: PacketDirection§data: Bytes§player_uuid: Option<Uuid>Trait Implementations§
Source§impl Clone for PacketData
impl Clone for PacketData
Source§fn clone(&self) -> PacketData
fn clone(&self) -> PacketData
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 moreAuto Trait Implementations§
impl !Freeze for PacketData
impl RefUnwindSafe for PacketData
impl Send for PacketData
impl Sync for PacketData
impl Unpin for PacketData
impl UnsafeUnpin for PacketData
impl UnwindSafe for PacketData
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