pub struct PlatformDevice {
pub id: String,
pub type_: String,
}
Expand description
The devices that are available on the container instance. The only supported device type is a GPU.
Fields§
§id: String
The ID for the GPU(s) on the container instance. The available GPU IDs can also be obtained on the container instance in the /var/lib/ecs/gpu/nvidia_gpu_info.json
file.
type_: String
The type of device that is available on the container instance. The only supported value is GPU
.
Trait Implementations§
Source§impl Clone for PlatformDevice
impl Clone for PlatformDevice
Source§fn clone(&self) -> PlatformDevice
fn clone(&self) -> PlatformDevice
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 PlatformDevice
impl Debug for PlatformDevice
Source§impl Default for PlatformDevice
impl Default for PlatformDevice
Source§fn default() -> PlatformDevice
fn default() -> PlatformDevice
Returns the “default value” for a type. Read more
Source§impl PartialEq for PlatformDevice
impl PartialEq for PlatformDevice
Source§impl Serialize for PlatformDevice
impl Serialize for PlatformDevice
impl StructuralPartialEq for PlatformDevice
Auto Trait Implementations§
impl Freeze for PlatformDevice
impl RefUnwindSafe for PlatformDevice
impl Send for PlatformDevice
impl Sync for PlatformDevice
impl Unpin for PlatformDevice
impl UnwindSafe for PlatformDevice
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