pub struct PlayerRef {
pub uuid: Uuid,
pub username: String,
}Expand description
Links an entity to a player connection.
Present on player entities to map between the ECS entity and the player’s network state (UUID, username, output channel).
Fields§
§uuid: UuidPlayer UUID (from Mojang or offline-mode).
username: StringPlayer display name.
Trait Implementations§
impl Component for PlayerRef
impl Eq for PlayerRef
impl StructuralPartialEq for PlayerRef
Auto Trait Implementations§
impl Freeze for PlayerRef
impl RefUnwindSafe for PlayerRef
impl Send for PlayerRef
impl Sync for PlayerRef
impl Unpin for PlayerRef
impl UnsafeUnpin for PlayerRef
impl UnwindSafe for PlayerRef
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.