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
impl CMsgSource2SystemSpecs
Sourcepub fn cpu_id(&self) -> &str
pub fn cpu_id(&self) -> &str
Returns the value of cpu_id, or the default value if cpu_id is unset.
Sourcepub fn cpu_brand(&self) -> &str
pub fn cpu_brand(&self) -> &str
Returns the value of cpu_brand, or the default value if cpu_brand is unset.
Sourcepub fn cpu_model(&self) -> u32
pub fn cpu_model(&self) -> u32
Returns the value of cpu_model, or the default value if cpu_model is unset.
Sourcepub fn cpu_num_physical(&self) -> u32
pub fn cpu_num_physical(&self) -> u32
Returns the value of cpu_num_physical, or the default value if cpu_num_physical is unset.
Sourcepub fn ram_physical_total_mb(&self) -> u32
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.
Sourcepub fn gpu_rendersystem_dll_name(&self) -> &str
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.
Sourcepub fn gpu_vendor_id(&self) -> u32
pub fn gpu_vendor_id(&self) -> u32
Returns the value of gpu_vendor_id, or the default value if gpu_vendor_id is unset.
Sourcepub fn gpu_driver_name(&self) -> &str
pub fn gpu_driver_name(&self) -> &str
Returns the value of gpu_driver_name, or the default value if gpu_driver_name is unset.
Sourcepub fn gpu_driver_version_high(&self) -> u32
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.
Sourcepub fn gpu_driver_version_low(&self) -> u32
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.
Sourcepub fn gpu_dx_support_level(&self) -> u32
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.
Sourcepub fn gpu_texture_memory_size_mb(&self) -> u32
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.
Sourcepub fn backbuffer_width(&self) -> u32
pub fn backbuffer_width(&self) -> u32
Returns the value of backbuffer_width, or the default value if backbuffer_width is unset.
Sourcepub fn backbuffer_height(&self) -> u32
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
impl Clone for CMsgSource2SystemSpecs
Source§fn clone(&self) -> CMsgSource2SystemSpecs
fn clone(&self) -> CMsgSource2SystemSpecs
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CMsgSource2SystemSpecs
impl Debug for CMsgSource2SystemSpecs
Source§impl Default for CMsgSource2SystemSpecs
impl Default for CMsgSource2SystemSpecs
Source§fn default() -> CMsgSource2SystemSpecs
fn default() -> CMsgSource2SystemSpecs
Source§impl<'de> Deserialize<'de> for CMsgSource2SystemSpecs
impl<'de> Deserialize<'de> for CMsgSource2SystemSpecs
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CMsgSource2SystemSpecs, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CMsgSource2SystemSpecs, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl Hash for CMsgSource2SystemSpecs
impl Hash for CMsgSource2SystemSpecs
Source§impl Message for CMsgSource2SystemSpecs
impl Message for CMsgSource2SystemSpecs
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for CMsgSource2SystemSpecs
impl PartialEq for CMsgSource2SystemSpecs
Source§impl Serialize for CMsgSource2SystemSpecs
impl Serialize for CMsgSource2SystemSpecs
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl Eq for CMsgSource2SystemSpecs
impl StructuralPartialEq for CMsgSource2SystemSpecs
Auto Trait Implementations§
impl Freeze for CMsgSource2SystemSpecs
impl RefUnwindSafe for CMsgSource2SystemSpecs
impl Send for CMsgSource2SystemSpecs
impl Sync for CMsgSource2SystemSpecs
impl Unpin for CMsgSource2SystemSpecs
impl UnwindSafe for CMsgSource2SystemSpecs
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.