FunctionService

Trait FunctionService 

Source
pub trait FunctionService:
    Debug
    + Send
    + Sync {
Show 16 methods // Provided methods fn get_function( &self, _req: GetFunctionRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Function>>> + Send { ... } fn list_functions( &self, _req: ListFunctionsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListFunctionsResponse>>> + Send { ... } fn create_function( &self, _req: CreateFunctionRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send { ... } fn update_function( &self, _req: UpdateFunctionRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send { ... } fn delete_function( &self, _req: DeleteFunctionRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send { ... } fn generate_upload_url( &self, _req: GenerateUploadUrlRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<GenerateUploadUrlResponse>>> + Send { ... } fn generate_download_url( &self, _req: GenerateDownloadUrlRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<GenerateDownloadUrlResponse>>> + Send { ... } fn list_runtimes( &self, _req: ListRuntimesRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListRuntimesResponse>>> + Send { ... } fn list_locations( &self, _req: ListLocationsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListLocationsResponse>>> + 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 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::FunctionService.

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

fn test_iam_permissions( &self, _req: TestIamPermissionsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<TestIamPermissionsResponse>>> + 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 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§