pub trait RepositoryManager:
Debug
+ Send
+ Sync {
Show 21 methods
// Provided methods
fn create_connection(
&self,
_req: CreateConnectionRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send { ... }
fn get_connection(
&self,
_req: GetConnectionRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Connection>>> + Send { ... }
fn list_connections(
&self,
_req: ListConnectionsRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<ListConnectionsResponse>>> + Send { ... }
fn update_connection(
&self,
_req: UpdateConnectionRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send { ... }
fn delete_connection(
&self,
_req: DeleteConnectionRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send { ... }
fn create_repository(
&self,
_req: CreateRepositoryRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send { ... }
fn batch_create_repositories(
&self,
_req: BatchCreateRepositoriesRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send { ... }
fn get_repository(
&self,
_req: GetRepositoryRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Repository>>> + Send { ... }
fn list_repositories(
&self,
_req: ListRepositoriesRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<ListRepositoriesResponse>>> + Send { ... }
fn delete_repository(
&self,
_req: DeleteRepositoryRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send { ... }
fn fetch_read_write_token(
&self,
_req: FetchReadWriteTokenRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<FetchReadWriteTokenResponse>>> + Send { ... }
fn fetch_read_token(
&self,
_req: FetchReadTokenRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<FetchReadTokenResponse>>> + Send { ... }
fn fetch_linkable_repositories(
&self,
_req: FetchLinkableRepositoriesRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<FetchLinkableRepositoriesResponse>>> + Send { ... }
fn fetch_git_refs(
&self,
_req: FetchGitRefsRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<FetchGitRefsResponse>>> + 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 get_operation(
&self,
_req: GetOperationRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + 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::RepositoryManager.
Application developers may need to implement this trait to mock
client::RepositoryManager. In other use-cases, application developers only
use client::RepositoryManager 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_connection(
&self,
_req: CreateConnectionRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send
fn create_connection( &self, _req: CreateConnectionRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send
Sourcefn get_connection(
&self,
_req: GetConnectionRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Connection>>> + Send
fn get_connection( &self, _req: GetConnectionRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Connection>>> + Send
Implements super::client::RepositoryManager::get_connection.
Sourcefn list_connections(
&self,
_req: ListConnectionsRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<ListConnectionsResponse>>> + Send
fn list_connections( &self, _req: ListConnectionsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListConnectionsResponse>>> + Send
Sourcefn update_connection(
&self,
_req: UpdateConnectionRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send
fn update_connection( &self, _req: UpdateConnectionRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send
Sourcefn delete_connection(
&self,
_req: DeleteConnectionRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send
fn delete_connection( &self, _req: DeleteConnectionRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send
Sourcefn create_repository(
&self,
_req: CreateRepositoryRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send
fn create_repository( &self, _req: CreateRepositoryRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send
Sourcefn batch_create_repositories(
&self,
_req: BatchCreateRepositoriesRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send
fn batch_create_repositories( &self, _req: BatchCreateRepositoriesRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send
Sourcefn get_repository(
&self,
_req: GetRepositoryRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Repository>>> + Send
fn get_repository( &self, _req: GetRepositoryRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Repository>>> + Send
Implements super::client::RepositoryManager::get_repository.
Sourcefn list_repositories(
&self,
_req: ListRepositoriesRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<ListRepositoriesResponse>>> + Send
fn list_repositories( &self, _req: ListRepositoriesRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListRepositoriesResponse>>> + Send
Sourcefn delete_repository(
&self,
_req: DeleteRepositoryRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Operation>>> + Send
fn delete_repository( &self, _req: DeleteRepositoryRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send
Sourcefn fetch_read_write_token(
&self,
_req: FetchReadWriteTokenRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<FetchReadWriteTokenResponse>>> + Send
fn fetch_read_write_token( &self, _req: FetchReadWriteTokenRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<FetchReadWriteTokenResponse>>> + Send
Sourcefn fetch_read_token(
&self,
_req: FetchReadTokenRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<FetchReadTokenResponse>>> + Send
fn fetch_read_token( &self, _req: FetchReadTokenRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<FetchReadTokenResponse>>> + Send
Sourcefn fetch_linkable_repositories(
&self,
_req: FetchLinkableRepositoriesRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<FetchLinkableRepositoriesResponse>>> + Send
fn fetch_linkable_repositories( &self, _req: FetchLinkableRepositoriesRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<FetchLinkableRepositoriesResponse>>> + Send
Sourcefn fetch_git_refs(
&self,
_req: FetchGitRefsRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<FetchGitRefsResponse>>> + Send
fn fetch_git_refs( &self, _req: FetchGitRefsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<FetchGitRefsResponse>>> + Send
Implements super::client::RepositoryManager::fetch_git_refs.
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::RepositoryManager::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::RepositoryManager::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 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::RepositoryManager::get_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
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.