#[non_exhaustive]pub struct GPUDirectConfig {
pub gpu_direct_strategy: Option<GPUDirectStrategy>,
/* private fields */
}Expand description
GPUDirectConfig specifies the GPU direct strategy on the node pool.
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_direct_strategy: Option<GPUDirectStrategy>The type of GPU direct strategy to enable on the node pool.
Implementations§
Source§impl GPUDirectConfig
impl GPUDirectConfig
pub fn new() -> Self
Sourcepub fn set_gpu_direct_strategy<T>(self, v: T) -> Selfwhere
T: Into<GPUDirectStrategy>,
pub fn set_gpu_direct_strategy<T>(self, v: T) -> Selfwhere
T: Into<GPUDirectStrategy>,
Sets the value of gpu_direct_strategy.
§Example
ⓘ
use google_cloud_container_v1::model::gpu_direct_config::GPUDirectStrategy;
let x0 = GPUDirectConfig::new().set_gpu_direct_strategy(GPUDirectStrategy::Rdma);Sourcepub fn set_or_clear_gpu_direct_strategy<T>(self, v: Option<T>) -> Selfwhere
T: Into<GPUDirectStrategy>,
pub fn set_or_clear_gpu_direct_strategy<T>(self, v: Option<T>) -> Selfwhere
T: Into<GPUDirectStrategy>,
Sets or clears the value of gpu_direct_strategy.
§Example
ⓘ
use google_cloud_container_v1::model::gpu_direct_config::GPUDirectStrategy;
let x0 = GPUDirectConfig::new().set_or_clear_gpu_direct_strategy(Some(GPUDirectStrategy::Rdma));
let x_none = GPUDirectConfig::new().set_or_clear_gpu_direct_strategy(None::<GPUDirectStrategy>);Trait Implementations§
Source§impl Clone for GPUDirectConfig
impl Clone for GPUDirectConfig
Source§fn clone(&self) -> GPUDirectConfig
fn clone(&self) -> GPUDirectConfig
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 GPUDirectConfig
impl Debug for GPUDirectConfig
Source§impl Default for GPUDirectConfig
impl Default for GPUDirectConfig
Source§fn default() -> GPUDirectConfig
fn default() -> GPUDirectConfig
Returns the “default value” for a type. Read more
Source§impl Message for GPUDirectConfig
impl Message for GPUDirectConfig
Source§impl PartialEq for GPUDirectConfig
impl PartialEq for GPUDirectConfig
impl StructuralPartialEq for GPUDirectConfig
Auto Trait Implementations§
impl Freeze for GPUDirectConfig
impl RefUnwindSafe for GPUDirectConfig
impl Send for GPUDirectConfig
impl Sync for GPUDirectConfig
impl Unpin for GPUDirectConfig
impl UnwindSafe for GPUDirectConfig
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