pub trait MigrationService:
Debug
+ Send
+ Sync {
// Provided methods
fn create_migration_workflow(
&self,
_req: CreateMigrationWorkflowRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<MigrationWorkflow>>> + Send { ... }
fn get_migration_workflow(
&self,
_req: GetMigrationWorkflowRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<MigrationWorkflow>>> + Send { ... }
fn list_migration_workflows(
&self,
_req: ListMigrationWorkflowsRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<ListMigrationWorkflowsResponse>>> + Send { ... }
fn delete_migration_workflow(
&self,
_req: DeleteMigrationWorkflowRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<()>>> + Send { ... }
fn start_migration_workflow(
&self,
_req: StartMigrationWorkflowRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<()>>> + Send { ... }
fn get_migration_subtask(
&self,
_req: GetMigrationSubtaskRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<MigrationSubtask>>> + Send { ... }
fn list_migration_subtasks(
&self,
_req: ListMigrationSubtasksRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<ListMigrationSubtasksResponse>>> + Send { ... }
}Expand description
Defines the trait used to implement super::client::MigrationService.
Application developers may need to implement this trait to mock
client::MigrationService. In other use-cases, application developers only
use client::MigrationService 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 create_migration_workflow(
&self,
_req: CreateMigrationWorkflowRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<MigrationWorkflow>>> + Send
fn create_migration_workflow( &self, _req: CreateMigrationWorkflowRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<MigrationWorkflow>>> + Send
Sourcefn get_migration_workflow(
&self,
_req: GetMigrationWorkflowRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<MigrationWorkflow>>> + Send
fn get_migration_workflow( &self, _req: GetMigrationWorkflowRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<MigrationWorkflow>>> + Send
Sourcefn list_migration_workflows(
&self,
_req: ListMigrationWorkflowsRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<ListMigrationWorkflowsResponse>>> + Send
fn list_migration_workflows( &self, _req: ListMigrationWorkflowsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListMigrationWorkflowsResponse>>> + Send
Sourcefn delete_migration_workflow(
&self,
_req: DeleteMigrationWorkflowRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<()>>> + Send
fn delete_migration_workflow( &self, _req: DeleteMigrationWorkflowRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<()>>> + Send
Sourcefn start_migration_workflow(
&self,
_req: StartMigrationWorkflowRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<()>>> + Send
fn start_migration_workflow( &self, _req: StartMigrationWorkflowRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<()>>> + Send
Sourcefn get_migration_subtask(
&self,
_req: GetMigrationSubtaskRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<MigrationSubtask>>> + Send
fn get_migration_subtask( &self, _req: GetMigrationSubtaskRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<MigrationSubtask>>> + Send
Sourcefn list_migration_subtasks(
&self,
_req: ListMigrationSubtasksRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<ListMigrationSubtasksResponse>>> + Send
fn list_migration_subtasks( &self, _req: ListMigrationSubtasksRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListMigrationSubtasksResponse>>> + 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.