pub trait SqlWorkloadCapturesService:
Debug
+ Send
+ Sync {
// Provided methods
fn start(
&self,
_req: WorkloadCapturesStartRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send { ... }
fn stop(
&self,
_req: WorkloadCapturesStopRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send { ... }
fn start_replay(
&self,
_req: WorkloadCapturesStartReplayRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send { ... }
fn stop_replay(
&self,
_req: WorkloadCapturesStopReplayRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send { ... }
fn list(
&self,
_req: SqlWorkloadCapturesListRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<WorkloadCapturesListResponse>>> + Send { ... }
}Expand description
Defines the trait used to implement super::client::SqlWorkloadCapturesService.
Application developers may need to implement this trait to mock
client::SqlWorkloadCapturesService. In other use-cases, application developers only
use client::SqlWorkloadCapturesService 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 start(
&self,
_req: WorkloadCapturesStartRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send
fn start( &self, _req: WorkloadCapturesStartRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send
Implements super::client::SqlWorkloadCapturesService::start.
Sourcefn stop(
&self,
_req: WorkloadCapturesStopRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send
fn stop( &self, _req: WorkloadCapturesStopRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send
Implements super::client::SqlWorkloadCapturesService::stop.
Sourcefn start_replay(
&self,
_req: WorkloadCapturesStartReplayRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send
fn start_replay( &self, _req: WorkloadCapturesStartReplayRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send
Sourcefn stop_replay(
&self,
_req: WorkloadCapturesStopReplayRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send
fn stop_replay( &self, _req: WorkloadCapturesStopReplayRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send
Sourcefn list(
&self,
_req: SqlWorkloadCapturesListRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<WorkloadCapturesListResponse>>> + Send
fn list( &self, _req: SqlWorkloadCapturesListRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<WorkloadCapturesListResponse>>> + Send
Implements super::client::SqlWorkloadCapturesService::list.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".