pub struct RawPacket {
pub id: i32,
pub data: Bytes,
}Expand description
A packet that the proxy does not need to inspect. Contains the raw packet ID and undecoded payload bytes.
Fields§
§id: i32The Minecraft packet ID.
data: BytesThe raw payload bytes (everything after the packet ID).
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for RawPacket
impl RefUnwindSafe for RawPacket
impl Send for RawPacket
impl Sync for RawPacket
impl Unpin for RawPacket
impl UnsafeUnpin for RawPacket
impl UnwindSafe for RawPacket
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