pub struct PlayerInfoEntry {
pub uuid: Uuid,
pub name: Option<String>,
pub properties: Vec<GameProfileProperty>,
pub chat_session: Option<ProtocolRemoteChatSessionData>,
pub game_mode: Option<VarInt>,
pub listed: Option<bool>,
pub latency: Option<VarInt>,
pub display_name: Option<PlayerDisplayName>,
pub list_order: Option<VarInt>,
pub show_hat: Option<bool>,
}Fields§
§uuid: Uuid§name: Option<String>§properties: Vec<GameProfileProperty>§chat_session: Option<ProtocolRemoteChatSessionData>§game_mode: Option<VarInt>§listed: Option<bool>§latency: Option<VarInt>§display_name: Option<PlayerDisplayName>§list_order: Option<VarInt>§show_hat: Option<bool>Implementations§
Source§impl PlayerInfoEntry
impl PlayerInfoEntry
Sourcepub const fn with_latency(self, latency: i32) -> Self
pub const fn with_latency(self, latency: i32) -> Self
Sets the latency field.
Sourcepub const fn with_game_mode(self, game_mode: i32) -> Self
pub const fn with_game_mode(self, game_mode: i32) -> Self
Sets the game mode field.
Sourcepub const fn with_listed(self, listed: bool) -> Self
pub const fn with_listed(self, listed: bool) -> Self
Sets the listed field.
Sourcepub fn with_display_name(
self,
display_name: impl Into<PlayerDisplayName>,
) -> Self
pub fn with_display_name( self, display_name: impl Into<PlayerDisplayName>, ) -> Self
Sets the display name field.
Sourcepub const fn with_show_hat(self, show_hat: bool) -> Self
pub const fn with_show_hat(self, show_hat: bool) -> Self
Sets the show hat field.
Sourcepub const fn with_list_order(self, list_order: i32) -> Self
pub const fn with_list_order(self, list_order: i32) -> Self
Sets the list order field (controls sort order in tab list).
Sourcepub fn with_chat_session(
self,
chat_session: ProtocolRemoteChatSessionData,
) -> Self
pub fn with_chat_session( self, chat_session: ProtocolRemoteChatSessionData, ) -> Self
Sets the chat session field.
Trait Implementations§
Source§impl Clone for PlayerInfoEntry
impl Clone for PlayerInfoEntry
Source§fn clone(&self) -> PlayerInfoEntry
fn clone(&self) -> PlayerInfoEntry
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 moreAuto Trait Implementations§
impl Freeze for PlayerInfoEntry
impl RefUnwindSafe for PlayerInfoEntry
impl Send for PlayerInfoEntry
impl Sync for PlayerInfoEntry
impl Unpin for PlayerInfoEntry
impl UnsafeUnpin for PlayerInfoEntry
impl UnwindSafe for PlayerInfoEntry
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<>>