pub enum NoPackets {}Expand description
The packet set of a state a version does not have (the configuration state before
1.20.2). Uninhabited: decoding always fails with DecodeError::UnknownPacketId.
Trait Implementations§
impl Copy for NoPackets
impl Eq for NoPackets
Source§impl PacketSet for NoPackets
impl PacketSet for NoPackets
Source§fn decode_raw(raw: &RawPacket) -> DecodeResult<Self>
fn decode_raw(raw: &RawPacket) -> DecodeResult<Self>
Decodes a raw packet into the matching variant (strict: no trailing bytes).
Source§fn encode_body(&self, _: &mut BytesMut) -> EncodeResult
fn encode_body(&self, _: &mut BytesMut) -> EncodeResult
Encodes the packet body (without the id).
impl StructuralPartialEq for NoPackets
Auto Trait Implementations§
impl Forget for NoPackets
impl Freeze for NoPackets
impl Move for NoPackets
impl RefUnwindSafe for NoPackets
impl Send for NoPackets
impl Sync for NoPackets
impl Unpin for NoPackets
impl UnsafeUnpin for NoPackets
impl UnwindSafe for NoPackets
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