pub trait IndexService:
Debug
+ Send
+ Sync {
Show 19 methods
// Provided methods
fn create_index(
&self,
_req: CreateIndexRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send { ... }
fn get_index(
&self,
_req: GetIndexRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Index>>> + Send { ... }
fn list_indexes(
&self,
_req: ListIndexesRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<ListIndexesResponse>>> + Send { ... }
fn update_index(
&self,
_req: UpdateIndexRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send { ... }
fn delete_index(
&self,
_req: DeleteIndexRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send { ... }
fn upsert_datapoints(
&self,
_req: UpsertDatapointsRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<UpsertDatapointsResponse>>> + Send { ... }
fn remove_datapoints(
&self,
_req: RemoveDatapointsRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<RemoveDatapointsResponse>>> + 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 { ... }
fn set_iam_policy(
&self,
_req: SetIamPolicyRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Policy>>> + Send { ... }
fn get_iam_policy(
&self,
_req: GetIamPolicyRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Policy>>> + Send { ... }
fn test_iam_permissions(
&self,
_req: TestIamPermissionsRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<TestIamPermissionsResponse>>> + 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 wait_operation(
&self,
_req: WaitOperationRequest,
_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> { ... }
}index-service only.Expand description
Defines the trait used to implement super::client::IndexService.
Application developers may need to implement this trait to mock
client::IndexService. In other use-cases, application developers only
use client::IndexService 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_index(
&self,
_req: CreateIndexRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send
fn create_index( &self, _req: CreateIndexRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send
Implements super::client::IndexService::create_index.
Sourcefn get_index(
&self,
_req: GetIndexRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Index>>> + Send
fn get_index( &self, _req: GetIndexRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Index>>> + Send
Implements super::client::IndexService::get_index.
Sourcefn list_indexes(
&self,
_req: ListIndexesRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<ListIndexesResponse>>> + Send
fn list_indexes( &self, _req: ListIndexesRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListIndexesResponse>>> + Send
Implements super::client::IndexService::list_indexes.
Sourcefn update_index(
&self,
_req: UpdateIndexRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send
fn update_index( &self, _req: UpdateIndexRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send
Implements super::client::IndexService::update_index.
Sourcefn delete_index(
&self,
_req: DeleteIndexRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send
fn delete_index( &self, _req: DeleteIndexRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send
Implements super::client::IndexService::delete_index.
Sourcefn upsert_datapoints(
&self,
_req: UpsertDatapointsRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<UpsertDatapointsResponse>>> + Send
fn upsert_datapoints( &self, _req: UpsertDatapointsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<UpsertDatapointsResponse>>> + Send
Implements super::client::IndexService::upsert_datapoints.
Sourcefn remove_datapoints(
&self,
_req: RemoveDatapointsRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<RemoveDatapointsResponse>>> + Send
fn remove_datapoints( &self, _req: RemoveDatapointsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<RemoveDatapointsResponse>>> + Send
Implements super::client::IndexService::remove_datapoints.
Sourcefn list_locations(
&self,
_req: ListLocationsRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<ListLocationsResponse>>> + Send
fn list_locations( &self, _req: ListLocationsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListLocationsResponse>>> + Send
Implements super::client::IndexService::list_locations.
Sourcefn get_location(
&self,
_req: GetLocationRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Location>>> + Send
fn get_location( &self, _req: GetLocationRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Location>>> + Send
Implements super::client::IndexService::get_location.
Sourcefn set_iam_policy(
&self,
_req: SetIamPolicyRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Policy>>> + Send
fn set_iam_policy( &self, _req: SetIamPolicyRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Policy>>> + Send
Implements super::client::IndexService::set_iam_policy.
Sourcefn get_iam_policy(
&self,
_req: GetIamPolicyRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Policy>>> + Send
fn get_iam_policy( &self, _req: GetIamPolicyRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Policy>>> + Send
Implements super::client::IndexService::get_iam_policy.
Sourcefn test_iam_permissions(
&self,
_req: TestIamPermissionsRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<TestIamPermissionsResponse>>> + Send
fn test_iam_permissions( &self, _req: TestIamPermissionsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<TestIamPermissionsResponse>>> + Send
Sourcefn list_operations(
&self,
_req: ListOperationsRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<ListOperationsResponse>>> + Send
fn list_operations( &self, _req: ListOperationsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListOperationsResponse>>> + Send
Implements super::client::IndexService::list_operations.
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::IndexService::get_operation.
Sourcefn delete_operation(
&self,
_req: DeleteOperationRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<()>>> + Send
fn delete_operation( &self, _req: DeleteOperationRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<()>>> + Send
Implements super::client::IndexService::delete_operation.
Sourcefn cancel_operation(
&self,
_req: CancelOperationRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<()>>> + Send
fn cancel_operation( &self, _req: CancelOperationRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<()>>> + Send
Implements super::client::IndexService::cancel_operation.
Sourcefn wait_operation(
&self,
_req: WaitOperationRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send
fn wait_operation( &self, _req: WaitOperationRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send
Implements super::client::IndexService::wait_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.