pub struct ClientInformation {
pub language: String,
pub view_distance: u8,
pub chat_visibility: ChatVisibility,
pub chat_colors: bool,
pub model_customization: i32,
pub main_hand: HumanoidArm,
pub text_filtering_enabled: bool,
pub allows_listing: bool,
pub particle_status: ParticleStatus,
}Expand description
Client-side settings sent via SClientInformation packet.
This is stored separately from the packet struct to allow default initialization.
Fields§
§language: StringThe client’s language (e.g., “en_us").
view_distance: u8The client’s requested view distance in chunks.
chat_visibility: ChatVisibilityChat visibility setting.
chat_colors: boolWhether chat colors are enabled.
model_customization: i32Bitmask for displayed skin parts.
main_hand: HumanoidArmThe player’s main hand (left or right).
text_filtering_enabled: boolWhether text filtering is enabled.
allows_listing: boolWhether the player appears in the server list.
particle_status: ParticleStatusParticle rendering setting.
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 (const: unstable) · 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
Auto Trait Implementations§
impl Freeze for ClientInformation
impl RefUnwindSafe for ClientInformation
impl Send for ClientInformation
impl Sync for ClientInformation
impl Unpin for ClientInformation
impl UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreWraps this value in an
Arc<SyncMutex<>>