#[non_exhaustive]pub struct GPUDriverInstallationConfig {
pub gpu_driver_version: Option<GPUDriverVersion>,
}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
Sourcepub fn set_gpu_driver_version<T: Into<Option<GPUDriverVersion>>>(
self,
v: T,
) -> Self
pub fn set_gpu_driver_version<T: Into<Option<GPUDriverVersion>>>( self, v: T, ) -> Self
Sets 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 copy 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
Source§impl<'de> Deserialize<'de> for GPUDriverInstallationConfigwhere
GPUDriverInstallationConfig: Default,
impl<'de> Deserialize<'de> for GPUDriverInstallationConfigwhere
GPUDriverInstallationConfig: Default,
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
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