#[non_exhaustive]pub struct NewClientInfo {Show 13 fields
pub username: String,
pub uuid: Uuid,
pub ip: IpAddr,
pub view_distance: u8,
pub locale: String,
pub chat_mode: ChatMode,
pub chat_colors: bool,
pub displayed_skin_parts: DisplayedSkinParts,
pub main_arm: MainArm,
pub enable_text_filtering: bool,
pub allow_server_listings: bool,
pub particle_mode: ParticleMode,
pub properties: Properties,
}Expand description
Contains information about a new client joining the server.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.username: StringThe username of the new client.
uuid: UuidThe UUID of the new client.
ip: IpAddrThe remote address of the new client.
view_distance: u8The requested view distance of the new client.
locale: StringClient locale from the configuration phase.
chat_mode: ChatMode§chat_colors: bool§displayed_skin_parts: DisplayedSkinParts§main_arm: MainArm§enable_text_filtering: bool§allow_server_listings: bool§particle_mode: ParticleMode§properties: PropertiesThe client’s properties from the game profile. Typically contains a
textures property with the skin and cape of the player.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NewClientInfo
impl RefUnwindSafe for NewClientInfo
impl Send for NewClientInfo
impl Sync for NewClientInfo
impl Unpin for NewClientInfo
impl UnwindSafe for NewClientInfo
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.