pub trait CloudShellService:
Debug
+ Send
+ Sync {
// Provided methods
fn get_environment(
&self,
_req: GetEnvironmentRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Environment>>> + Send { ... }
fn start_environment(
&self,
_req: StartEnvironmentRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send { ... }
fn authorize_environment(
&self,
_req: AuthorizeEnvironmentRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send { ... }
fn add_public_key(
&self,
_req: AddPublicKeyRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send { ... }
fn remove_public_key(
&self,
_req: RemovePublicKeyRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send { ... }
fn get_operation(
&self,
_req: GetOperationRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send { ... }
fn get_polling_error_policy(
&self,
_options: &RequestOptions,
) -> Arc<dyn PollingErrorPolicy> { ... }
fn get_polling_backoff_policy(
&self,
_options: &RequestOptions,
) -> Arc<dyn PollingBackoffPolicy> { ... }
}
Expand description
Defines the trait used to implement super::client::CloudShellService.
Application developers may need to implement this trait to mock
client::CloudShellService
. In other use-cases, application developers only
use client::CloudShellService
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 get_environment(
&self,
_req: GetEnvironmentRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Environment>>> + Send
fn get_environment( &self, _req: GetEnvironmentRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Environment>>> + Send
Sourcefn start_environment(
&self,
_req: StartEnvironmentRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send
fn start_environment( &self, _req: StartEnvironmentRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send
Sourcefn add_public_key(
&self,
_req: AddPublicKeyRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send
fn add_public_key( &self, _req: AddPublicKeyRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send
Implements super::client::CloudShellService::add_public_key.
Sourcefn remove_public_key(
&self,
_req: RemovePublicKeyRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send
fn remove_public_key( &self, _req: RemovePublicKeyRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send
Sourcefn get_operation(
&self,
_req: GetOperationRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send
fn get_operation( &self, _req: GetOperationRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send
Implements super::client::CloudShellService::get_operation.
Sourcefn get_polling_error_policy(
&self,
_options: &RequestOptions,
) -> Arc<dyn PollingErrorPolicy>
fn get_polling_error_policy( &self, _options: &RequestOptions, ) -> Arc<dyn PollingErrorPolicy>
Returns the polling error policy.
When mocking, this method is typically irrelevant. Do not try to verify it is called by your mocks.
Sourcefn get_polling_backoff_policy(
&self,
_options: &RequestOptions,
) -> Arc<dyn PollingBackoffPolicy>
fn get_polling_backoff_policy( &self, _options: &RequestOptions, ) -> Arc<dyn PollingBackoffPolicy>
Returns the polling backoff policy.
When mocking, this method is typically irrelevant. Do not try to verify it is called by your mocks.
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.