pub struct ClientSystemInfo {
pub os: Os,
pub os_version: String,
pub arch: Arch,
pub cpu_cores: u16,
pub ram_mb: u32,
}Expand description
Snapshot of coarse client machine characteristics captured when the socket connects.
Fields§
§os: OsOperating system family.
os_version: StringHuman-readable OS version string reported by the client.
arch: ArchCPU architecture family.
cpu_cores: u16Logical CPU core count.
ram_mb: u32Total physical memory reported by the client, in whole megabytes.
Trait Implementations§
Source§impl Clone for ClientSystemInfo
impl Clone for ClientSystemInfo
Source§fn clone(&self) -> ClientSystemInfo
fn clone(&self) -> ClientSystemInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ClientSystemInfo
impl Debug for ClientSystemInfo
Source§impl Default for ClientSystemInfo
impl Default for ClientSystemInfo
Source§fn default() -> ClientSystemInfo
fn default() -> ClientSystemInfo
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ClientSystemInfowhere
ClientSystemInfo: Default,
impl<'de> Deserialize<'de> for ClientSystemInfowhere
ClientSystemInfo: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ClientSystemInfo
impl PartialEq for ClientSystemInfo
Source§impl Serialize for ClientSystemInfo
impl Serialize for ClientSystemInfo
impl Eq for ClientSystemInfo
impl StructuralPartialEq for ClientSystemInfo
Auto Trait Implementations§
impl Freeze for ClientSystemInfo
impl RefUnwindSafe for ClientSystemInfo
impl Send for ClientSystemInfo
impl Sync for ClientSystemInfo
impl Unpin for ClientSystemInfo
impl UnsafeUnpin for ClientSystemInfo
impl UnwindSafe for ClientSystemInfo
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