Skip to main content

ClientSession

Trait ClientSession 

pub trait ClientSession {
    // Provided methods
    fn client_server(&self) -> Option<ClientServer> { ... }
    fn client_language(&self) -> Option<String> { ... }
    fn client_frame_stats(&self) -> Option<ClientFrameStats> { ... }
}
Expand description

The client_session service, reached through its host.

Provided Methods§

fn client_server(&self) -> Option<ClientServer>

Side: client. The connected server, not a stale reconnect target. None outside a logged-in client world. External display names are not retained; memory connections have no address. Friend-invite secrets are redacted.

fn client_language(&self) -> Option<String>

Side: client. The applied language code, not a pending options selection. None outside a logged-in client world. Read is_paused for the applied pause state.

fn client_frame_stats(&self) -> Option<ClientFrameStats>

Side: client. Existing local frame counters; None outside a logged-in client world. This read collects no history and sends nothing anywhere.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§