Struct fast_protocol::datatypes::packets::ClientInformation
source · pub struct ClientInformation {
pub locale: String,
pub view_distance: Byte,
pub chat_mode: Enum<ChatMode, VarInt>,
pub chat_colors: Boolean,
pub displayed_skin_parts: UnsignedByte,
pub main_hand: Enum<MainHand, VarInt>,
pub text_filtering: Boolean,
pub allow_server_listing: Boolean,
}Expand description
Packet containg every important information of the client
Fields§
§locale: Stringlanguage of the client
view_distance: ByteView distance of the client
chat_mode: Enum<ChatMode, VarInt>which ChatMode the client is using
chat_colors: Booleanif the client wants to use chat colors
displayed_skin_parts: UnsignedBytemask of the displayed skin parts
main_hand: Enum<MainHand, VarInt>selection which hand the client uses as his MainHand
text_filtering: Booleanselection about the chat filter
allow_server_listing: Booleanselection, if the username is allowed to be displayed on the serverlist
Trait Implementations§
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