pub trait MachineTypes:
Debug
+ Send
+ Sync {
// Provided methods
fn aggregated_list(
&self,
_req: AggregatedListRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<MachineTypeAggregatedList>>> + Send { ... }
fn get(
&self,
_req: GetRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<MachineType>>> + Send { ... }
fn list(
&self,
_req: ListRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<MachineTypeList>>> + Send { ... }
}machine-types only.Expand description
Defines the trait used to implement super::client::MachineTypes.
Application developers may need to implement this trait to mock
client::MachineTypes. In other use-cases, application developers only
use client::MachineTypes and need not be concerned with this trait or
its implementations.
Services gain new RPCs routinely. Consequently, this trait gains new methods too. To avoid breaking applications the trait provides a default implementation of each method. Most of these implementations just return an error.
Provided Methods§
Sourcefn aggregated_list(
&self,
_req: AggregatedListRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<MachineTypeAggregatedList>>> + Send
fn aggregated_list( &self, _req: AggregatedListRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<MachineTypeAggregatedList>>> + Send
Implements super::client::MachineTypes::aggregated_list.
Sourcefn get(
&self,
_req: GetRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<MachineType>>> + Send
fn get( &self, _req: GetRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<MachineType>>> + Send
Implements super::client::MachineTypes::get.
Sourcefn list(
&self,
_req: ListRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<MachineTypeList>>> + Send
fn list( &self, _req: ListRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<MachineTypeList>>> + Send
Implements super::client::MachineTypes::list.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.