pub struct SetCompressionPacket {
pub threshold: i32,
}Expand description
Clientbound set compression (packet ID 0x03 in LOGIN state).
Fields§
§threshold: i32Compression threshold in bytes. Packets larger than this will be compressed. A value of -1 disables compression.
Trait Implementations§
Source§impl Clone for SetCompressionPacket
impl Clone for SetCompressionPacket
Source§fn clone(&self) -> SetCompressionPacket
fn clone(&self) -> SetCompressionPacket
Returns a duplicate of the value. Read more
1.0.0 · 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 SetCompressionPacket
impl Debug for SetCompressionPacket
Auto Trait Implementations§
impl Freeze for SetCompressionPacket
impl RefUnwindSafe for SetCompressionPacket
impl Send for SetCompressionPacket
impl Sync for SetCompressionPacket
impl Unpin for SetCompressionPacket
impl UnsafeUnpin for SetCompressionPacket
impl UnwindSafe for SetCompressionPacket
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