pub trait AlertPolicyService:
Debug
+ Send
+ Sync {
// Provided methods
fn list_alert_policies(
&self,
_req: ListAlertPoliciesRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<ListAlertPoliciesResponse>> + Send { ... }
fn get_alert_policy(
&self,
_req: GetAlertPolicyRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<AlertPolicy>> + Send { ... }
fn create_alert_policy(
&self,
_req: CreateAlertPolicyRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<AlertPolicy>> + Send { ... }
fn delete_alert_policy(
&self,
_req: DeleteAlertPolicyRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Empty>> + Send { ... }
fn update_alert_policy(
&self,
_req: UpdateAlertPolicyRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<AlertPolicy>> + Send { ... }
}Expand description
Defines the trait used to implement crate::client::AlertPolicyService.
Application developers may need to implement this trait to mock
client::AlertPolicyService. In other use-cases, application developers only
use client::AlertPolicyService 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 list_alert_policies(
&self,
_req: ListAlertPoliciesRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<ListAlertPoliciesResponse>> + Send
fn list_alert_policies( &self, _req: ListAlertPoliciesRequest, _options: RequestOptions, ) -> impl Future<Output = Result<ListAlertPoliciesResponse>> + Send
Sourcefn get_alert_policy(
&self,
_req: GetAlertPolicyRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<AlertPolicy>> + Send
fn get_alert_policy( &self, _req: GetAlertPolicyRequest, _options: RequestOptions, ) -> impl Future<Output = Result<AlertPolicy>> + Send
Sourcefn create_alert_policy(
&self,
_req: CreateAlertPolicyRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<AlertPolicy>> + Send
fn create_alert_policy( &self, _req: CreateAlertPolicyRequest, _options: RequestOptions, ) -> impl Future<Output = Result<AlertPolicy>> + Send
Sourcefn delete_alert_policy(
&self,
_req: DeleteAlertPolicyRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Empty>> + Send
fn delete_alert_policy( &self, _req: DeleteAlertPolicyRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Empty>> + Send
Sourcefn update_alert_policy(
&self,
_req: UpdateAlertPolicyRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<AlertPolicy>> + Send
fn update_alert_policy( &self, _req: UpdateAlertPolicyRequest, _options: RequestOptions, ) -> impl Future<Output = Result<AlertPolicy>> + 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.