#[non_exhaustive]pub struct PlayerInfo {
pub name: Box<str>,
pub game_mode: i32,
pub ping: i32,
pub display_name: Option<Box<str>>,
pub textures: Option<Box<str>>,
pub display_name_nbt: Option<Bytes>,
pub listed: bool,
pub list_order: i32,
/* private fields */
}Expand description
A tab-list entry (#[non_exhaustive]: read-only for callers, fields may be added).
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.name: Box<str>Profile name.
game_mode: i32Game mode.
ping: i32Latency in ms.
display_name: Option<Box<str>>Display name (raw chat JSON), if set (1.8 – 1.16; see
PlayerInfo::display_name_nbt for 26.1).
textures: Option<Box<str>>The base64 "textures" profile property as sent (only with Config::skins; its
signature is not kept). Decoded it is JSON with the skin and cape URLs.
display_name_nbt: Option<Bytes>26.1: the display name as its raw network NBT text component, if set.
listed: boolShown in the tab list (26.1 UPDATE_LISTED; always true before 26.1).
list_order: i3226.1 tab list order (UPDATE_LIST_ORDER; 0 before).
Trait Implementations§
Source§impl Clone for PlayerInfo
impl Clone for PlayerInfo
Source§impl Debug for PlayerInfo
impl Debug for PlayerInfo
impl Eq for PlayerInfo
Source§impl PartialEq for PlayerInfo
impl PartialEq for PlayerInfo
impl StructuralPartialEq for PlayerInfo
Auto Trait Implementations§
impl !Freeze for PlayerInfo
impl Forget for PlayerInfo
impl Move for PlayerInfo
impl RefUnwindSafe for PlayerInfo
impl Send for PlayerInfo
impl Sync for PlayerInfo
impl Unpin for PlayerInfo
impl UnsafeUnpin for PlayerInfo
impl UnwindSafe for PlayerInfo
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