Struct aws_sdk_ecs::types::InferenceAccelerator
source · #[non_exhaustive]pub struct InferenceAccelerator {
pub device_name: String,
pub device_type: String,
}
Expand description
Details on an Elastic Inference accelerator. For more information, see Working with Amazon Elastic Inference on Amazon ECS in the Amazon Elastic Container Service Developer Guide.
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.device_name: String
The Elastic Inference accelerator device name. The deviceName
must also be referenced in a container definition as a ResourceRequirement.
device_type: String
The Elastic Inference accelerator type to use.
Implementations§
source§impl InferenceAccelerator
impl InferenceAccelerator
sourcepub fn device_name(&self) -> &str
pub fn device_name(&self) -> &str
The Elastic Inference accelerator device name. The deviceName
must also be referenced in a container definition as a ResourceRequirement.
sourcepub fn device_type(&self) -> &str
pub fn device_type(&self) -> &str
The Elastic Inference accelerator type to use.
source§impl InferenceAccelerator
impl InferenceAccelerator
sourcepub fn builder() -> InferenceAcceleratorBuilder
pub fn builder() -> InferenceAcceleratorBuilder
Creates a new builder-style object to manufacture InferenceAccelerator
.
Trait Implementations§
source§impl Clone for InferenceAccelerator
impl Clone for InferenceAccelerator
source§fn clone(&self) -> InferenceAccelerator
fn clone(&self) -> InferenceAccelerator
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 InferenceAccelerator
impl Debug for InferenceAccelerator
source§impl PartialEq for InferenceAccelerator
impl PartialEq for InferenceAccelerator
source§fn eq(&self, other: &InferenceAccelerator) -> bool
fn eq(&self, other: &InferenceAccelerator) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for InferenceAccelerator
Auto Trait Implementations§
impl Freeze for InferenceAccelerator
impl RefUnwindSafe for InferenceAccelerator
impl Send for InferenceAccelerator
impl Sync for InferenceAccelerator
impl Unpin for InferenceAccelerator
impl UnwindSafe for InferenceAccelerator
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.