Struct fast_server::player::Player
source · pub struct Player {
pub uuid: u128,
pub username: String,
pub sender: Sender<PlayerMessages>,
pub information: Option<PlayerInformation>,
}Expand description
struct with all player data
Fields§
§uuid: u128uuid of the player
username: Stringusername of the player
sender: Sender<PlayerMessages>channel that can be used to send data to the player
information: Option<PlayerInformation>optional PlayerInformation
§Note
This field is only optional, because the player gets cvreated, before he sends all his
information, after the Configuration state is over it should always contain data
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Player
impl !RefUnwindSafe for Player
impl Send for Player
impl Sync for Player
impl Unpin for Player
impl !UnwindSafe for Player
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