pub trait ServiceMonitoringService:
    Debug
    + Send
    + Sync {
    // Provided methods
    fn create_service(
        &self,
        _req: CreateServiceRequest,
        _options: RequestOptions,
    ) -> impl Future<Output = Result<Service>> + Send { ... }
    fn get_service(
        &self,
        _req: GetServiceRequest,
        _options: RequestOptions,
    ) -> impl Future<Output = Result<Service>> + Send { ... }
    fn list_services(
        &self,
        _req: ListServicesRequest,
        _options: RequestOptions,
    ) -> impl Future<Output = Result<ListServicesResponse>> + Send { ... }
    fn update_service(
        &self,
        _req: UpdateServiceRequest,
        _options: RequestOptions,
    ) -> impl Future<Output = Result<Service>> + Send { ... }
    fn delete_service(
        &self,
        _req: DeleteServiceRequest,
        _options: RequestOptions,
    ) -> impl Future<Output = Result<Empty>> + Send { ... }
    fn create_service_level_objective(
        &self,
        _req: CreateServiceLevelObjectiveRequest,
        _options: RequestOptions,
    ) -> impl Future<Output = Result<ServiceLevelObjective>> + Send { ... }
    fn get_service_level_objective(
        &self,
        _req: GetServiceLevelObjectiveRequest,
        _options: RequestOptions,
    ) -> impl Future<Output = Result<ServiceLevelObjective>> + Send { ... }
    fn list_service_level_objectives(
        &self,
        _req: ListServiceLevelObjectivesRequest,
        _options: RequestOptions,
    ) -> impl Future<Output = Result<ListServiceLevelObjectivesResponse>> + Send { ... }
    fn update_service_level_objective(
        &self,
        _req: UpdateServiceLevelObjectiveRequest,
        _options: RequestOptions,
    ) -> impl Future<Output = Result<ServiceLevelObjective>> + Send { ... }
    fn delete_service_level_objective(
        &self,
        _req: DeleteServiceLevelObjectiveRequest,
        _options: RequestOptions,
    ) -> impl Future<Output = Result<Empty>> + Send { ... }
}Expand description
Defines the trait used to implement crate::client::ServiceMonitoringService.
Application developers may need to implement this trait to mock
client::ServiceMonitoringService.  In other use-cases, application developers only
use client::ServiceMonitoringService 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_service(
    &self,
    _req: CreateServiceRequest,
    _options: RequestOptions,
) -> impl Future<Output = Result<Service>> + Send
 
fn create_service( &self, _req: CreateServiceRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Service>> + Send
Sourcefn get_service(
    &self,
    _req: GetServiceRequest,
    _options: RequestOptions,
) -> impl Future<Output = Result<Service>> + Send
 
fn get_service( &self, _req: GetServiceRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Service>> + Send
Sourcefn list_services(
    &self,
    _req: ListServicesRequest,
    _options: RequestOptions,
) -> impl Future<Output = Result<ListServicesResponse>> + Send
 
fn list_services( &self, _req: ListServicesRequest, _options: RequestOptions, ) -> impl Future<Output = Result<ListServicesResponse>> + Send
Sourcefn update_service(
    &self,
    _req: UpdateServiceRequest,
    _options: RequestOptions,
) -> impl Future<Output = Result<Service>> + Send
 
fn update_service( &self, _req: UpdateServiceRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Service>> + Send
Sourcefn delete_service(
    &self,
    _req: DeleteServiceRequest,
    _options: RequestOptions,
) -> impl Future<Output = Result<Empty>> + Send
 
fn delete_service( &self, _req: DeleteServiceRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Empty>> + Send
Sourcefn create_service_level_objective(
    &self,
    _req: CreateServiceLevelObjectiveRequest,
    _options: RequestOptions,
) -> impl Future<Output = Result<ServiceLevelObjective>> + Send
 
fn create_service_level_objective( &self, _req: CreateServiceLevelObjectiveRequest, _options: RequestOptions, ) -> impl Future<Output = Result<ServiceLevelObjective>> + Send
Sourcefn get_service_level_objective(
    &self,
    _req: GetServiceLevelObjectiveRequest,
    _options: RequestOptions,
) -> impl Future<Output = Result<ServiceLevelObjective>> + Send
 
fn get_service_level_objective( &self, _req: GetServiceLevelObjectiveRequest, _options: RequestOptions, ) -> impl Future<Output = Result<ServiceLevelObjective>> + Send
Sourcefn list_service_level_objectives(
    &self,
    _req: ListServiceLevelObjectivesRequest,
    _options: RequestOptions,
) -> impl Future<Output = Result<ListServiceLevelObjectivesResponse>> + Send
 
fn list_service_level_objectives( &self, _req: ListServiceLevelObjectivesRequest, _options: RequestOptions, ) -> impl Future<Output = Result<ListServiceLevelObjectivesResponse>> + Send
Sourcefn update_service_level_objective(
    &self,
    _req: UpdateServiceLevelObjectiveRequest,
    _options: RequestOptions,
) -> impl Future<Output = Result<ServiceLevelObjective>> + Send
 
fn update_service_level_objective( &self, _req: UpdateServiceLevelObjectiveRequest, _options: RequestOptions, ) -> impl Future<Output = Result<ServiceLevelObjective>> + Send
Sourcefn delete_service_level_objective(
    &self,
    _req: DeleteServiceLevelObjectiveRequest,
    _options: RequestOptions,
) -> impl Future<Output = Result<Empty>> + Send
 
fn delete_service_level_objective( &self, _req: DeleteServiceLevelObjectiveRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Empty>> + 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.