Trait NotificationChannelService

Source
pub trait NotificationChannelService:
    Debug
    + Send
    + Sync {
    // Provided methods
    fn list_notification_channel_descriptors(
        &self,
        _req: ListNotificationChannelDescriptorsRequest,
        _options: RequestOptions,
    ) -> impl Future<Output = Result<ListNotificationChannelDescriptorsResponse>> + Send { ... }
    fn get_notification_channel_descriptor(
        &self,
        _req: GetNotificationChannelDescriptorRequest,
        _options: RequestOptions,
    ) -> impl Future<Output = Result<NotificationChannelDescriptor>> + Send { ... }
    fn list_notification_channels(
        &self,
        _req: ListNotificationChannelsRequest,
        _options: RequestOptions,
    ) -> impl Future<Output = Result<ListNotificationChannelsResponse>> + Send { ... }
    fn get_notification_channel(
        &self,
        _req: GetNotificationChannelRequest,
        _options: RequestOptions,
    ) -> impl Future<Output = Result<NotificationChannel>> + Send { ... }
    fn create_notification_channel(
        &self,
        _req: CreateNotificationChannelRequest,
        _options: RequestOptions,
    ) -> impl Future<Output = Result<NotificationChannel>> + Send { ... }
    fn update_notification_channel(
        &self,
        _req: UpdateNotificationChannelRequest,
        _options: RequestOptions,
    ) -> impl Future<Output = Result<NotificationChannel>> + Send { ... }
    fn delete_notification_channel(
        &self,
        _req: DeleteNotificationChannelRequest,
        _options: RequestOptions,
    ) -> impl Future<Output = Result<Empty>> + Send { ... }
    fn send_notification_channel_verification_code(
        &self,
        _req: SendNotificationChannelVerificationCodeRequest,
        _options: RequestOptions,
    ) -> impl Future<Output = Result<Empty>> + Send { ... }
    fn get_notification_channel_verification_code(
        &self,
        _req: GetNotificationChannelVerificationCodeRequest,
        _options: RequestOptions,
    ) -> impl Future<Output = Result<GetNotificationChannelVerificationCodeResponse>> + Send { ... }
    fn verify_notification_channel(
        &self,
        _req: VerifyNotificationChannelRequest,
        _options: RequestOptions,
    ) -> impl Future<Output = Result<NotificationChannel>> + Send { ... }
}
Expand description

Defines the trait used to implement crate::client::NotificationChannelService.

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

Source

fn get_notification_channel_descriptor( &self, _req: GetNotificationChannelDescriptorRequest, _options: RequestOptions, ) -> impl Future<Output = Result<NotificationChannelDescriptor>> + Send

Source

fn list_notification_channels( &self, _req: ListNotificationChannelsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<ListNotificationChannelsResponse>> + Send

Source

fn get_notification_channel( &self, _req: GetNotificationChannelRequest, _options: RequestOptions, ) -> impl Future<Output = Result<NotificationChannel>> + Send

Source

fn create_notification_channel( &self, _req: CreateNotificationChannelRequest, _options: RequestOptions, ) -> impl Future<Output = Result<NotificationChannel>> + Send

Source

fn update_notification_channel( &self, _req: UpdateNotificationChannelRequest, _options: RequestOptions, ) -> impl Future<Output = Result<NotificationChannel>> + Send

Source

fn delete_notification_channel( &self, _req: DeleteNotificationChannelRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Empty>> + Send

Source

fn send_notification_channel_verification_code( &self, _req: SendNotificationChannelVerificationCodeRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Empty>> + Send

Source

fn get_notification_channel_verification_code( &self, _req: GetNotificationChannelVerificationCodeRequest, _options: RequestOptions, ) -> impl Future<Output = Result<GetNotificationChannelVerificationCodeResponse>> + Send

Source

fn verify_notification_channel( &self, _req: VerifyNotificationChannelRequest, _options: RequestOptions, ) -> impl Future<Output = Result<NotificationChannel>> + 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.

Implementors§