pub struct SetCompression {
pub threshold: i32,
}Expand description
set_compression (clientbound play, id 0x46).
Fields§
§threshold: i32threshold
Trait Implementations§
Source§impl Clone for SetCompression
impl Clone for SetCompression
Source§impl Debug for SetCompression
impl Debug for SetCompression
Source§impl Decode for SetCompression
impl Decode for SetCompression
Source§fn decode(r: &mut Reader<'_>) -> DecodeResult<Self>
fn decode(r: &mut Reader<'_>) -> DecodeResult<Self>
Decodes one value, advancing the reader past it.
Source§impl Encode for SetCompression
impl Encode for SetCompression
Source§fn encode(&self, w: &mut BytesMut) -> EncodeResult
fn encode(&self, w: &mut BytesMut) -> EncodeResult
Appends the encoding of
self to w.Source§impl From<SetCompression> for ClientboundPlayPacket
impl From<SetCompression> for ClientboundPlayPacket
Source§fn from(p: SetCompression) -> Self
fn from(p: SetCompression) -> Self
Converts to this type from the input type.
Source§impl Generate for SetCompression
Available on crate feature testgen only.
impl Generate for SetCompression
Available on crate feature
testgen only.Source§impl Packet for SetCompression
impl Packet for SetCompression
Source§impl PartialEq for SetCompression
impl PartialEq for SetCompression
impl StructuralPartialEq for SetCompression
Auto Trait Implementations§
impl Freeze for SetCompression
impl RefUnwindSafe for SetCompression
impl Send for SetCompression
impl Sync for SetCompression
impl Unpin for SetCompression
impl UnsafeUnpin for SetCompression
impl UnwindSafe for SetCompression
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