#[non_exhaustive]pub struct GPUDriverConfig {
pub enable_gpu_driver: bool,
pub custom_gpu_driver_path: String,
/* private fields */
}Expand description
A GPU driver configuration
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.enable_gpu_driver: boolOptional. Whether the end user authorizes Google Cloud to install GPU driver on this VM instance. If this field is empty or set to false, the GPU driver won’t be installed. Only applicable to instances with GPUs.
custom_gpu_driver_path: StringOptional. Specify a custom Cloud Storage path where the GPU driver is stored. If not specified, we’ll automatically choose from official GPU drivers.
Implementations§
Source§impl GPUDriverConfig
impl GPUDriverConfig
pub fn new() -> Self
Sourcepub fn set_enable_gpu_driver<T: Into<bool>>(self, v: T) -> Self
pub fn set_enable_gpu_driver<T: Into<bool>>(self, v: T) -> Self
Sets the value of enable_gpu_driver.
Sourcepub fn set_custom_gpu_driver_path<T: Into<String>>(self, v: T) -> Self
pub fn set_custom_gpu_driver_path<T: Into<String>>(self, v: T) -> Self
Sets the value of custom_gpu_driver_path.
Trait Implementations§
Source§impl Clone for GPUDriverConfig
impl Clone for GPUDriverConfig
Source§fn clone(&self) -> GPUDriverConfig
fn clone(&self) -> GPUDriverConfig
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 GPUDriverConfig
impl Debug for GPUDriverConfig
Source§impl Default for GPUDriverConfig
impl Default for GPUDriverConfig
Source§fn default() -> GPUDriverConfig
fn default() -> GPUDriverConfig
Returns the “default value” for a type. Read more
Source§impl Message for GPUDriverConfig
impl Message for GPUDriverConfig
Source§impl PartialEq for GPUDriverConfig
impl PartialEq for GPUDriverConfig
impl StructuralPartialEq for GPUDriverConfig
Auto Trait Implementations§
impl Freeze for GPUDriverConfig
impl RefUnwindSafe for GPUDriverConfig
impl Send for GPUDriverConfig
impl Sync for GPUDriverConfig
impl Unpin for GPUDriverConfig
impl UnwindSafe for GPUDriverConfig
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