pub struct ClientBuild {
pub platform: ClientPlatform,
pub engine_gate: EngineGate,
/* private fields */
}Expand description
The client identity carried on a session, as reported by the client itself.
Fields§
§platform: ClientPlatform§engine_gate: EngineGateImplementations§
Source§impl ClientBuild
impl ClientBuild
pub fn new( platform: ClientPlatform, raw_version: Option<String>, engine_gate: EngineGate, ) -> Self
Sourcepub fn version(&self) -> Option<&str>
pub fn version(&self) -> Option<&str>
What goes in the analytics event. None for a client that reported
nothing, which is itself the signal: it predates version reporting.
Sourcepub fn applies_state_patches(&self) -> bool
pub fn applies_state_patches(&self) -> bool
Whether this seat can apply stateDelta patches. Unreported and
unparseable versions answer no, so an unknown client gets full states.
Trait Implementations§
Source§impl Clone for ClientBuild
impl Clone for ClientBuild
Source§impl Debug for ClientBuild
impl Debug for ClientBuild
Auto Trait Implementations§
impl Freeze for ClientBuild
impl RefUnwindSafe for ClientBuild
impl Send for ClientBuild
impl Sync for ClientBuild
impl Unpin for ClientBuild
impl UnsafeUnpin for ClientBuild
impl UnwindSafe for ClientBuild
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