pub struct SetCompression {
pub threshold: VarInt,
}Fields§
§threshold: VarIntImplementations§
Trait Implementations§
Source§impl Clone for SetCompression
impl Clone for SetCompression
Source§fn clone(&self) -> SetCompression
fn clone(&self) -> SetCompression
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 SetCompression
impl Debug for SetCompression
Source§impl Packet for SetCompression
impl Packet for SetCompression
const ID: i32 = 3i32
Source§fn to_bytes(&self) -> Vec<u8> ⓘ
fn to_bytes(&self) -> Vec<u8> ⓘ
Serializes the packet to a Vec<u8> in accordance with the minecraft protocol so that it can be sent via the network. Read more
Source§fn from_reader(reader: &mut PacketReader) -> Result<Self, Errors>
fn from_reader(reader: &mut PacketReader) -> Result<Self, Errors>
Allows the reading of packets from a PacketReader. Read more
Auto Trait Implementations§
impl Freeze for SetCompression
impl RefUnwindSafe for SetCompression
impl Send for SetCompression
impl Sync for SetCompression
impl Unpin 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