pub struct ClientInformation {
pub locale: String,
pub view_distance: Byte,
pub chat_mode: ChatMode,
pub chat_colors: bool,
pub displayed_skin_parts: UByte,
pub main_hand: VarInt,
pub enable_text_filtering: bool,
pub allow_server_listings: bool,
pub particle_status: ParticleStatus,
}
Fields§
§locale: String
§view_distance: Byte
§chat_mode: ChatMode
§chat_colors: bool
§displayed_skin_parts: UByte
§main_hand: VarInt
§enable_text_filtering: bool
§allow_server_listings: bool
§particle_status: ParticleStatus
Implementations§
Trait Implementations§
Source§impl Clone for ClientInformation
impl Clone for ClientInformation
Source§fn clone(&self) -> ClientInformation
fn clone(&self) -> ClientInformation
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 ClientInformation
impl Debug for ClientInformation
Source§impl Packet for ClientInformation
impl Packet for ClientInformation
const ID: i32 = 0i32
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 ClientInformation
impl RefUnwindSafe for ClientInformation
impl Send for ClientInformation
impl Sync for ClientInformation
impl Unpin for ClientInformation
impl UnwindSafe for ClientInformation
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