DataFusion

Trait DataFusion 

Source
pub trait DataFusion:
    Debug
    + Send
    + Sync {
Show 13 methods // Provided methods fn list_available_versions( &self, _req: ListAvailableVersionsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListAvailableVersionsResponse>>> + Send { ... } fn list_instances( &self, _req: ListInstancesRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListInstancesResponse>>> + Send { ... } fn get_instance( &self, _req: GetInstanceRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Instance>>> + Send { ... } fn create_instance( &self, _req: CreateInstanceRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send { ... } fn delete_instance( &self, _req: DeleteInstanceRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send { ... } fn update_instance( &self, _req: UpdateInstanceRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send { ... } fn restart_instance( &self, _req: RestartInstanceRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send { ... } fn list_operations( &self, _req: ListOperationsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListOperationsResponse>>> + Send { ... } fn get_operation( &self, _req: GetOperationRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send { ... } fn delete_operation( &self, _req: DeleteOperationRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<()>>> + Send { ... } fn cancel_operation( &self, _req: CancelOperationRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<()>>> + 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::DataFusion.

Application developers may need to implement this trait to mock client::DataFusion. In other use-cases, application developers only use client::DataFusion 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 list_available_versions( &self, _req: ListAvailableVersionsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListAvailableVersionsResponse>>> + Send

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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.

Source

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.

Implementors§