pub struct GetInfoReturns<'a> { /* private fields */ }Expand description
Returns information about the system.
Implementations§
Source§impl<'a> GetInfoReturns<'a>
impl<'a> GetInfoReturns<'a>
Sourcepub fn builder(
gpu: GPUInfo<'a>,
model_name: impl Into<Cow<'a, str>>,
model_version: impl Into<Cow<'a, str>>,
command_line: impl Into<Cow<'a, str>>,
) -> GetInfoReturnsBuilder<'a>
pub fn builder( gpu: GPUInfo<'a>, model_name: impl Into<Cow<'a, str>>, model_version: impl Into<Cow<'a, str>>, command_line: impl Into<Cow<'a, str>>, ) -> GetInfoReturnsBuilder<'a>
Creates a builder for this type with the required parameters:
gpu: Information about the GPUs on the system.model_name: A platform-dependent description of the model of the machine. On Mac OS, this is, for example, ‘MacBookPro’. Will be the empty string if not supported.model_version: A platform-dependent description of the version of the machine. On Mac OS, this is, for example, ‘10.1’. Will be the empty string if not supported.command_line: The command line string used to launch the browser. Will be the empty string if not supported.
Sourcepub fn model_name(&self) -> &str
pub fn model_name(&self) -> &str
A platform-dependent description of the model of the machine. On Mac OS, this is, for example, ‘MacBookPro’. Will be the empty string if not supported.
Sourcepub fn model_version(&self) -> &str
pub fn model_version(&self) -> &str
A platform-dependent description of the version of the machine. On Mac OS, this is, for example, ‘10.1’. Will be the empty string if not supported.
Sourcepub fn command_line(&self) -> &str
pub fn command_line(&self) -> &str
The command line string used to launch the browser. Will be the empty string if not supported.
Trait Implementations§
Source§impl<'a> Clone for GetInfoReturns<'a>
impl<'a> Clone for GetInfoReturns<'a>
Source§fn clone(&self) -> GetInfoReturns<'a>
fn clone(&self) -> GetInfoReturns<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for GetInfoReturns<'a>
impl<'a> Debug for GetInfoReturns<'a>
Source§impl<'a> Default for GetInfoReturns<'a>
impl<'a> Default for GetInfoReturns<'a>
Source§fn default() -> GetInfoReturns<'a>
fn default() -> GetInfoReturns<'a>
Returns the “default value” for a type. Read more
Source§impl<'de, 'a> Deserialize<'de> for GetInfoReturns<'a>
impl<'de, 'a> Deserialize<'de> for GetInfoReturns<'a>
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
Auto Trait Implementations§
impl<'a> Freeze for GetInfoReturns<'a>
impl<'a> RefUnwindSafe for GetInfoReturns<'a>
impl<'a> Send for GetInfoReturns<'a>
impl<'a> Sync for GetInfoReturns<'a>
impl<'a> Unpin for GetInfoReturns<'a>
impl<'a> UnsafeUnpin for GetInfoReturns<'a>
impl<'a> UnwindSafe for GetInfoReturns<'a>
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