CMsgSource2SystemSpecs

Struct CMsgSource2SystemSpecs 

Source
pub struct CMsgSource2SystemSpecs {
Show 14 fields pub cpu_id: Option<String>, pub cpu_brand: Option<String>, pub cpu_model: Option<u32>, pub cpu_num_physical: Option<u32>, pub ram_physical_total_mb: Option<u32>, pub gpu_rendersystem_dll_name: Option<String>, pub gpu_vendor_id: Option<u32>, pub gpu_driver_name: Option<String>, pub gpu_driver_version_high: Option<u32>, pub gpu_driver_version_low: Option<u32>, pub gpu_dx_support_level: Option<u32>, pub gpu_texture_memory_size_mb: Option<u32>, pub backbuffer_width: Option<u32>, pub backbuffer_height: Option<u32>,
}

Fields§

§cpu_id: Option<String>§cpu_brand: Option<String>§cpu_model: Option<u32>§cpu_num_physical: Option<u32>§ram_physical_total_mb: Option<u32>§gpu_rendersystem_dll_name: Option<String>§gpu_vendor_id: Option<u32>§gpu_driver_name: Option<String>§gpu_driver_version_high: Option<u32>§gpu_driver_version_low: Option<u32>§gpu_dx_support_level: Option<u32>§gpu_texture_memory_size_mb: Option<u32>§backbuffer_width: Option<u32>§backbuffer_height: Option<u32>

Implementations§

Source§

impl CMsgSource2SystemSpecs

Source

pub fn cpu_id(&self) -> &str

Returns the value of cpu_id, or the default value if cpu_id is unset.

Source

pub fn cpu_brand(&self) -> &str

Returns the value of cpu_brand, or the default value if cpu_brand is unset.

Source

pub fn cpu_model(&self) -> u32

Returns the value of cpu_model, or the default value if cpu_model is unset.

Source

pub fn cpu_num_physical(&self) -> u32

Returns the value of cpu_num_physical, or the default value if cpu_num_physical is unset.

Source

pub fn ram_physical_total_mb(&self) -> u32

Returns the value of ram_physical_total_mb, or the default value if ram_physical_total_mb is unset.

Source

pub fn gpu_rendersystem_dll_name(&self) -> &str

Returns the value of gpu_rendersystem_dll_name, or the default value if gpu_rendersystem_dll_name is unset.

Source

pub fn gpu_vendor_id(&self) -> u32

Returns the value of gpu_vendor_id, or the default value if gpu_vendor_id is unset.

Source

pub fn gpu_driver_name(&self) -> &str

Returns the value of gpu_driver_name, or the default value if gpu_driver_name is unset.

Source

pub fn gpu_driver_version_high(&self) -> u32

Returns the value of gpu_driver_version_high, or the default value if gpu_driver_version_high is unset.

Source

pub fn gpu_driver_version_low(&self) -> u32

Returns the value of gpu_driver_version_low, or the default value if gpu_driver_version_low is unset.

Source

pub fn gpu_dx_support_level(&self) -> u32

Returns the value of gpu_dx_support_level, or the default value if gpu_dx_support_level is unset.

Source

pub fn gpu_texture_memory_size_mb(&self) -> u32

Returns the value of gpu_texture_memory_size_mb, or the default value if gpu_texture_memory_size_mb is unset.

Source

pub fn backbuffer_width(&self) -> u32

Returns the value of backbuffer_width, or the default value if backbuffer_width is unset.

Source

pub fn backbuffer_height(&self) -> u32

Returns the value of backbuffer_height, or the default value if backbuffer_height is unset.

Trait Implementations§

Source§

impl Clone for CMsgSource2SystemSpecs

Source§

fn clone(&self) -> CMsgSource2SystemSpecs

Returns a duplicate of the value. Read more
1.0.0§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for CMsgSource2SystemSpecs

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Default for CMsgSource2SystemSpecs

Source§

fn default() -> CMsgSource2SystemSpecs

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for CMsgSource2SystemSpecs

Source§

fn deserialize<__D>( __deserializer: __D, ) -> Result<CMsgSource2SystemSpecs, <__D as Deserializer<'de>>::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Hash for CMsgSource2SystemSpecs

Source§

fn hash<__H>(&self, state: &mut __H)
where __H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Message for CMsgSource2SystemSpecs

Source§

fn encoded_len(&self) -> usize

Returns the encoded length of the message without a length delimiter.
Source§

fn clear(&mut self)

Clears the message, resetting all fields to their default.
Source§

fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>
where Self: Sized,

Encodes the message to a buffer. Read more
Source§

fn encode_to_vec(&self) -> Vec<u8>
where Self: Sized,

Encodes the message to a newly allocated buffer.
Source§

fn encode_length_delimited( &self, buf: &mut impl BufMut, ) -> Result<(), EncodeError>
where Self: Sized,

Encodes the message with a length-delimiter to a buffer. Read more
Source§

fn encode_length_delimited_to_vec(&self) -> Vec<u8>
where Self: Sized,

Encodes the message with a length-delimiter to a newly allocated buffer.
Source§

fn decode(buf: impl Buf) -> Result<Self, DecodeError>
where Self: Default,

Decodes an instance of the message from a buffer. Read more
Source§

fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>
where Self: Default,

Decodes a length-delimited instance of the message from the buffer.
Source§

fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>
where Self: Sized,

Decodes an instance of the message from a buffer, and merges it into self. Read more
Source§

fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>
where Self: Sized,

Decodes a length-delimited instance of the message from buffer, and merges it into self.
Source§

impl PartialEq for CMsgSource2SystemSpecs

Source§

fn eq(&self, other: &CMsgSource2SystemSpecs) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for CMsgSource2SystemSpecs

Source§

fn serialize<__S>( &self, __serializer: __S, ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Eq for CMsgSource2SystemSpecs

Source§

impl StructuralPartialEq for CMsgSource2SystemSpecs

Auto Trait Implementations§

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> CloneToUninit for T
where T: Clone,

§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,