pub struct ConnectedPlayer {Show 19 fields
pub player_id: String,
pub username: String,
pub room_id: Option<String>,
pub sender: UnboundedSender<Message>,
pub last_client_rtt_ms: Option<u32>,
pub connected: bool,
pub generation: u64,
pub last_seen: Instant,
pub disconnected_at: Option<Instant>,
pub is_service: bool,
pub identity: Vec<SessionIdentity>,
pub name_verified: bool,
pub qualification: Option<String>,
pub avatar_url: Option<String>,
pub client: ClientBuild,
pub local_game: Option<LocalGameKind>,
pub last_chat_at: Option<Instant>,
pub client_ip: String,
pub seal: Option<String>,
}Fields§
§player_id: String§username: String§room_id: Option<String>§sender: UnboundedSender<Message>§last_client_rtt_ms: Option<u32>Most recent heartbeat round trip for this connection. The aggregate histogram cannot answer whether one slow decision sat behind one bad link, because it drops the association at the moment it records.
connected: bool§generation: u64§last_seen: Instant§disconnected_at: Option<Instant>§is_service: bool§identity: Vec<SessionIdentity>§name_verified: bool§qualification: Option<String>§avatar_url: Option<String>§client: ClientBuildWhat the client reported at authentication. Read when deciding which wire features this seat can be sent.
local_game: Option<LocalGameKind>Playing on their own machine, reported by the client. Only meaningful
while connected: a dropped socket stops asserting anything.
last_chat_at: Option<Instant>§client_ip: String§seal: Option<String>Implementations§
Trait Implementations§
Source§impl From<&ConnectedPlayer> for UsernameSession
impl From<&ConnectedPlayer> for UsernameSession
Source§fn from(player: &ConnectedPlayer) -> Self
fn from(player: &ConnectedPlayer) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ConnectedPlayer
impl RefUnwindSafe for ConnectedPlayer
impl Send for ConnectedPlayer
impl Sync for ConnectedPlayer
impl Unpin for ConnectedPlayer
impl UnsafeUnpin for ConnectedPlayer
impl UnwindSafe for ConnectedPlayer
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