DataTransferService

Trait DataTransferService 

Source
pub trait DataTransferService:
    Debug
    + Send
    + Sync {
Show 18 methods // Provided methods fn get_data_source( &self, _req: GetDataSourceRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<DataSource>>> + Send { ... } fn list_data_sources( &self, _req: ListDataSourcesRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListDataSourcesResponse>>> + Send { ... } fn create_transfer_config( &self, _req: CreateTransferConfigRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<TransferConfig>>> + Send { ... } fn update_transfer_config( &self, _req: UpdateTransferConfigRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<TransferConfig>>> + Send { ... } fn delete_transfer_config( &self, _req: DeleteTransferConfigRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<()>>> + Send { ... } fn get_transfer_config( &self, _req: GetTransferConfigRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<TransferConfig>>> + Send { ... } fn list_transfer_configs( &self, _req: ListTransferConfigsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListTransferConfigsResponse>>> + Send { ... } fn schedule_transfer_runs( &self, _req: ScheduleTransferRunsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ScheduleTransferRunsResponse>>> + Send { ... } fn start_manual_transfer_runs( &self, _req: StartManualTransferRunsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<StartManualTransferRunsResponse>>> + Send { ... } fn get_transfer_run( &self, _req: GetTransferRunRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<TransferRun>>> + Send { ... } fn delete_transfer_run( &self, _req: DeleteTransferRunRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<()>>> + Send { ... } fn list_transfer_runs( &self, _req: ListTransferRunsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListTransferRunsResponse>>> + Send { ... } fn list_transfer_logs( &self, _req: ListTransferLogsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListTransferLogsResponse>>> + Send { ... } fn check_valid_creds( &self, _req: CheckValidCredsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<CheckValidCredsResponse>>> + Send { ... } fn enroll_data_sources( &self, _req: EnrollDataSourcesRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<()>>> + Send { ... } fn unenroll_data_sources( &self, _req: UnenrollDataSourcesRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<()>>> + Send { ... } fn list_locations( &self, _req: ListLocationsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListLocationsResponse>>> + Send { ... } fn get_location( &self, _req: GetLocationRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Location>>> + Send { ... }
}
Expand description

Defines the trait used to implement super::client::DataTransferService.

Application developers may need to implement this trait to mock client::DataTransferService. In other use-cases, application developers only use client::DataTransferService 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§

Source

fn get_data_source( &self, _req: GetDataSourceRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<DataSource>>> + Send

Source

fn list_data_sources( &self, _req: ListDataSourcesRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListDataSourcesResponse>>> + Send

Source

fn create_transfer_config( &self, _req: CreateTransferConfigRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<TransferConfig>>> + Send

Source

fn update_transfer_config( &self, _req: UpdateTransferConfigRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<TransferConfig>>> + Send

Source

fn delete_transfer_config( &self, _req: DeleteTransferConfigRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<()>>> + Send

Source

fn get_transfer_config( &self, _req: GetTransferConfigRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<TransferConfig>>> + Send

Source

fn list_transfer_configs( &self, _req: ListTransferConfigsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListTransferConfigsResponse>>> + Send

Source

fn schedule_transfer_runs( &self, _req: ScheduleTransferRunsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ScheduleTransferRunsResponse>>> + Send

Source

fn start_manual_transfer_runs( &self, _req: StartManualTransferRunsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<StartManualTransferRunsResponse>>> + Send

Source

fn get_transfer_run( &self, _req: GetTransferRunRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<TransferRun>>> + Send

Source

fn delete_transfer_run( &self, _req: DeleteTransferRunRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<()>>> + Send

Source

fn list_transfer_runs( &self, _req: ListTransferRunsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListTransferRunsResponse>>> + Send

Source

fn list_transfer_logs( &self, _req: ListTransferLogsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListTransferLogsResponse>>> + Send

Source

fn check_valid_creds( &self, _req: CheckValidCredsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<CheckValidCredsResponse>>> + Send

Source

fn enroll_data_sources( &self, _req: EnrollDataSourcesRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<()>>> + Send

Source

fn unenroll_data_sources( &self, _req: UnenrollDataSourcesRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<()>>> + Send

Source

fn list_locations( &self, _req: ListLocationsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListLocationsResponse>>> + Send

Source

fn get_location( &self, _req: GetLocationRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Location>>> + Send

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.

Implementors§