#[non_exhaustive]pub struct GPUDriverInstallationConfig {
pub gpu_driver_version: Option<GPUDriverVersion>,
/* private fields */
}Expand description
GPUDriverInstallationConfig specifies the version of GPU driver to be auto installed.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.gpu_driver_version: Option<GPUDriverVersion>Mode for how the GPU driver is installed.
Implementations§
Source§impl GPUDriverInstallationConfig
impl GPUDriverInstallationConfig
pub fn new() -> Self
Sourcepub fn set_gpu_driver_version<T>(self, v: T) -> Selfwhere
T: Into<GPUDriverVersion>,
pub fn set_gpu_driver_version<T>(self, v: T) -> Selfwhere
T: Into<GPUDriverVersion>,
Sets the value of gpu_driver_version.
Sourcepub fn set_or_clear_gpu_driver_version<T>(self, v: Option<T>) -> Selfwhere
T: Into<GPUDriverVersion>,
pub fn set_or_clear_gpu_driver_version<T>(self, v: Option<T>) -> Selfwhere
T: Into<GPUDriverVersion>,
Sets or clears the value of gpu_driver_version.
Trait Implementations§
Source§impl Clone for GPUDriverInstallationConfig
impl Clone for GPUDriverInstallationConfig
Source§fn clone(&self) -> GPUDriverInstallationConfig
fn clone(&self) -> GPUDriverInstallationConfig
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 GPUDriverInstallationConfig
impl Debug for GPUDriverInstallationConfig
Source§impl Default for GPUDriverInstallationConfig
impl Default for GPUDriverInstallationConfig
Source§fn default() -> GPUDriverInstallationConfig
fn default() -> GPUDriverInstallationConfig
Returns the “default value” for a type. Read more
impl StructuralPartialEq for GPUDriverInstallationConfig
Auto Trait Implementations§
impl Freeze for GPUDriverInstallationConfig
impl RefUnwindSafe for GPUDriverInstallationConfig
impl Send for GPUDriverInstallationConfig
impl Sync for GPUDriverInstallationConfig
impl Unpin for GPUDriverInstallationConfig
impl UnwindSafe for GPUDriverInstallationConfig
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