pub struct ElasticInferenceClient { /* private fields */ }
Expand description
A client for the Amazon Elastic Inference API.
Implementations§
Source§impl ElasticInferenceClient
impl ElasticInferenceClient
Sourcepub fn new(region: Region) -> ElasticInferenceClient
pub fn new(region: Region) -> ElasticInferenceClient
Creates a client backed by the default tokio event loop.
The client will use the default credentials provider and tls client.
pub fn new_with<P, D>(
request_dispatcher: D,
credentials_provider: P,
region: Region,
) -> ElasticInferenceClientwhere
P: ProvideAwsCredentials + Send + Sync + 'static,
D: DispatchSignedRequest + Send + Sync + 'static,
pub fn new_with_client(client: Client, region: Region) -> ElasticInferenceClient
Trait Implementations§
Source§impl Clone for ElasticInferenceClient
impl Clone for ElasticInferenceClient
Source§fn clone(&self) -> ElasticInferenceClient
fn clone(&self) -> ElasticInferenceClient
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 ElasticInference for ElasticInferenceClient
impl ElasticInference for ElasticInferenceClient
Source§fn describe_accelerator_offerings<'life0, 'async_trait>(
&'life0 self,
input: DescribeAcceleratorOfferingsRequest,
) -> Pin<Box<dyn Future<Output = Result<DescribeAcceleratorOfferingsResponse, RusotoError<DescribeAcceleratorOfferingsError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn describe_accelerator_offerings<'life0, 'async_trait>(
&'life0 self,
input: DescribeAcceleratorOfferingsRequest,
) -> Pin<Box<dyn Future<Output = Result<DescribeAcceleratorOfferingsResponse, RusotoError<DescribeAcceleratorOfferingsError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Describes the locations in which a given accelerator type or set of types is present in a given region.
Source§fn describe_accelerator_types<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<DescribeAcceleratorTypesResponse, RusotoError<DescribeAcceleratorTypesError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn describe_accelerator_types<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<DescribeAcceleratorTypesResponse, RusotoError<DescribeAcceleratorTypesError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Describes the accelerator types available in a given region, as well as their characteristics, such as memory and throughput.
Source§fn describe_accelerators<'life0, 'async_trait>(
&'life0 self,
input: DescribeAcceleratorsRequest,
) -> Pin<Box<dyn Future<Output = Result<DescribeAcceleratorsResponse, RusotoError<DescribeAcceleratorsError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn describe_accelerators<'life0, 'async_trait>(
&'life0 self,
input: DescribeAcceleratorsRequest,
) -> Pin<Box<dyn Future<Output = Result<DescribeAcceleratorsResponse, RusotoError<DescribeAcceleratorsError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Describes information over a provided set of accelerators belonging to an account.
Returns all tags of an Elastic Inference Accelerator.
Source§fn tag_resource<'life0, 'async_trait>(
&'life0 self,
input: TagResourceRequest,
) -> Pin<Box<dyn Future<Output = Result<TagResourceResult, RusotoError<TagResourceError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn tag_resource<'life0, 'async_trait>(
&'life0 self,
input: TagResourceRequest,
) -> Pin<Box<dyn Future<Output = Result<TagResourceResult, RusotoError<TagResourceError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Adds the specified tags to an Elastic Inference Accelerator.
Source§fn untag_resource<'life0, 'async_trait>(
&'life0 self,
input: UntagResourceRequest,
) -> Pin<Box<dyn Future<Output = Result<UntagResourceResult, RusotoError<UntagResourceError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn untag_resource<'life0, 'async_trait>(
&'life0 self,
input: UntagResourceRequest,
) -> Pin<Box<dyn Future<Output = Result<UntagResourceResult, RusotoError<UntagResourceError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Removes the specified tags from an Elastic Inference Accelerator.
Auto Trait Implementations§
impl Freeze for ElasticInferenceClient
impl !RefUnwindSafe for ElasticInferenceClient
impl Send for ElasticInferenceClient
impl Sync for ElasticInferenceClient
impl Unpin for ElasticInferenceClient
impl !UnwindSafe for ElasticInferenceClient
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