Struct aws_sdk_ec2::types::GpuDeviceInfo
source · #[non_exhaustive]pub struct GpuDeviceInfo {
pub name: Option<String>,
pub manufacturer: Option<String>,
pub count: Option<i32>,
pub memory_info: Option<GpuDeviceMemoryInfo>,
}
Expand description
Describes the GPU accelerators for the instance type.
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.name: Option<String>
The name of the GPU accelerator.
manufacturer: Option<String>
The manufacturer of the GPU accelerator.
count: Option<i32>
The number of GPUs for the instance type.
memory_info: Option<GpuDeviceMemoryInfo>
Describes the memory available to the GPU accelerator.
Implementations§
source§impl GpuDeviceInfo
impl GpuDeviceInfo
sourcepub fn manufacturer(&self) -> Option<&str>
pub fn manufacturer(&self) -> Option<&str>
The manufacturer of the GPU accelerator.
sourcepub fn memory_info(&self) -> Option<&GpuDeviceMemoryInfo>
pub fn memory_info(&self) -> Option<&GpuDeviceMemoryInfo>
Describes the memory available to the GPU accelerator.
source§impl GpuDeviceInfo
impl GpuDeviceInfo
sourcepub fn builder() -> GpuDeviceInfoBuilder
pub fn builder() -> GpuDeviceInfoBuilder
Creates a new builder-style object to manufacture GpuDeviceInfo
.
Trait Implementations§
source§impl Clone for GpuDeviceInfo
impl Clone for GpuDeviceInfo
source§fn clone(&self) -> GpuDeviceInfo
fn clone(&self) -> GpuDeviceInfo
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 GpuDeviceInfo
impl Debug for GpuDeviceInfo
source§impl PartialEq<GpuDeviceInfo> for GpuDeviceInfo
impl PartialEq<GpuDeviceInfo> for GpuDeviceInfo
source§fn eq(&self, other: &GpuDeviceInfo) -> bool
fn eq(&self, other: &GpuDeviceInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for GpuDeviceInfo
Auto Trait Implementations§
impl RefUnwindSafe for GpuDeviceInfo
impl Send for GpuDeviceInfo
impl Sync for GpuDeviceInfo
impl Unpin for GpuDeviceInfo
impl UnwindSafe for GpuDeviceInfo
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