Skip to main content

UserSystemInformation

Struct UserSystemInformation 

Source
pub struct UserSystemInformation {
Show 19 fields pub manufacturer: Option<String>, pub model: Option<String>, pub dx_video_card: Option<String>, pub dx_vendorid: Option<i32>, pub dx_deviceid: Option<i32>, pub num_gpu: Option<u32>, pub system_ram: Option<u64>, pub os: Option<String>, pub cpu_vendor: Option<String>, pub cpu_name: Option<String>, pub gaming_device_type: Option<u32>, pub dx_driver_version: Option<String>, pub adapter_description: Option<String>, pub driver_version: Option<String>, pub driver_date: Option<String>, pub vram_size: Option<u32>, pub screen_width: Option<u32>, pub screen_height: Option<u32>, pub precise_frame_rate: Option<bool>,
}

Fields§

§manufacturer: Option<String>§model: Option<String>§dx_video_card: Option<String>§dx_vendorid: Option<i32>§dx_deviceid: Option<i32>§num_gpu: Option<u32>§system_ram: Option<u64>§os: Option<String>§cpu_vendor: Option<String>§cpu_name: Option<String>§gaming_device_type: Option<u32>§dx_driver_version: Option<String>§adapter_description: Option<String>§driver_version: Option<String>§driver_date: Option<String>§vram_size: Option<u32>§screen_width: Option<u32>§screen_height: Option<u32>§precise_frame_rate: Option<bool>

Implementations§

Source§

impl UserSystemInformation

Source

pub fn manufacturer(&self) -> &str

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

Source

pub fn model(&self) -> &str

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

Source

pub fn dx_video_card(&self) -> &str

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

Source

pub fn dx_vendorid(&self) -> i32

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

Source

pub fn dx_deviceid(&self) -> i32

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

Source

pub fn num_gpu(&self) -> u32

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

Source

pub fn system_ram(&self) -> u64

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

Source

pub fn os(&self) -> &str

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

Source

pub fn cpu_vendor(&self) -> &str

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

Source

pub fn cpu_name(&self) -> &str

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

Source

pub fn gaming_device_type(&self) -> u32

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

Source

pub fn dx_driver_version(&self) -> &str

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

Source

pub fn adapter_description(&self) -> &str

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

Source

pub fn driver_version(&self) -> &str

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

Source

pub fn driver_date(&self) -> &str

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

Source

pub fn vram_size(&self) -> u32

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

Source

pub fn screen_width(&self) -> u32

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

Source

pub fn screen_height(&self) -> u32

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

Source

pub fn precise_frame_rate(&self) -> bool

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

Trait Implementations§

Source§

impl Clone for UserSystemInformation

Source§

fn clone(&self) -> UserSystemInformation

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for UserSystemInformation

Source§

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

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

impl Default for UserSystemInformation

Source§

fn default() -> Self

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

impl Eq for UserSystemInformation

Source§

impl Hash for UserSystemInformation

Source§

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

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

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 UserSystemInformation

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 UserSystemInformation

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

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 StructuralPartialEq for UserSystemInformation

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

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

Source§

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<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

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

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

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

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

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

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

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

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

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

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

Source§

type Error = Infallible

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

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

Performs the conversion.
Source§

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

Source§

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

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

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

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more