pub struct Builder { /* private fields */ }
Expand description
A builder for GpuInfo
.
Implementations
sourceimpl Builder
impl Builder
sourcepub fn gpus(self, input: GpuDeviceInfo) -> Self
pub fn gpus(self, input: GpuDeviceInfo) -> Self
Appends an item to gpus
.
To override the contents of this collection use set_gpus
.
Describes the GPU accelerators for the instance type.
sourcepub fn set_gpus(self, input: Option<Vec<GpuDeviceInfo>>) -> Self
pub fn set_gpus(self, input: Option<Vec<GpuDeviceInfo>>) -> Self
Describes the GPU accelerators for the instance type.
sourcepub fn total_gpu_memory_in_mi_b(self, input: i32) -> Self
pub fn total_gpu_memory_in_mi_b(self, input: i32) -> Self
The total size of the memory for the GPU accelerators for the instance type, in MiB.
sourcepub fn set_total_gpu_memory_in_mi_b(self, input: Option<i32>) -> Self
pub fn set_total_gpu_memory_in_mi_b(self, input: Option<i32>) -> Self
The total size of the memory for the GPU accelerators for the instance type, in MiB.
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more