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§
Sourcefn list_notification_channel_descriptors(
    &self,
    _req: ListNotificationChannelDescriptorsRequest,
    _options: RequestOptions,
) -> impl Future<Output = Result<ListNotificationChannelDescriptorsResponse>> + Send
 
fn list_notification_channel_descriptors( &self, _req: ListNotificationChannelDescriptorsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<ListNotificationChannelDescriptorsResponse>> + Send
Sourcefn get_notification_channel_descriptor(
    &self,
    _req: GetNotificationChannelDescriptorRequest,
    _options: RequestOptions,
) -> impl Future<Output = Result<NotificationChannelDescriptor>> + Send
 
fn get_notification_channel_descriptor( &self, _req: GetNotificationChannelDescriptorRequest, _options: RequestOptions, ) -> impl Future<Output = Result<NotificationChannelDescriptor>> + Send
Sourcefn list_notification_channels(
    &self,
    _req: ListNotificationChannelsRequest,
    _options: RequestOptions,
) -> impl Future<Output = Result<ListNotificationChannelsResponse>> + Send
 
fn list_notification_channels( &self, _req: ListNotificationChannelsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<ListNotificationChannelsResponse>> + Send
Sourcefn get_notification_channel(
    &self,
    _req: GetNotificationChannelRequest,
    _options: RequestOptions,
) -> impl Future<Output = Result<NotificationChannel>> + Send
 
fn get_notification_channel( &self, _req: GetNotificationChannelRequest, _options: RequestOptions, ) -> impl Future<Output = Result<NotificationChannel>> + Send
Sourcefn create_notification_channel(
    &self,
    _req: CreateNotificationChannelRequest,
    _options: RequestOptions,
) -> impl Future<Output = Result<NotificationChannel>> + Send
 
fn create_notification_channel( &self, _req: CreateNotificationChannelRequest, _options: RequestOptions, ) -> impl Future<Output = Result<NotificationChannel>> + Send
Sourcefn update_notification_channel(
    &self,
    _req: UpdateNotificationChannelRequest,
    _options: RequestOptions,
) -> impl Future<Output = Result<NotificationChannel>> + Send
 
fn update_notification_channel( &self, _req: UpdateNotificationChannelRequest, _options: RequestOptions, ) -> impl Future<Output = Result<NotificationChannel>> + Send
Sourcefn delete_notification_channel(
    &self,
    _req: DeleteNotificationChannelRequest,
    _options: RequestOptions,
) -> impl Future<Output = Result<Empty>> + Send
 
fn delete_notification_channel( &self, _req: DeleteNotificationChannelRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Empty>> + Send
Sourcefn send_notification_channel_verification_code(
    &self,
    _req: SendNotificationChannelVerificationCodeRequest,
    _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
Sourcefn get_notification_channel_verification_code(
    &self,
    _req: GetNotificationChannelVerificationCodeRequest,
    _options: RequestOptions,
) -> impl Future<Output = Result<GetNotificationChannelVerificationCodeResponse>> + Send
 
fn get_notification_channel_verification_code( &self, _req: GetNotificationChannelVerificationCodeRequest, _options: RequestOptions, ) -> impl Future<Output = Result<GetNotificationChannelVerificationCodeResponse>> + Send
Sourcefn verify_notification_channel(
    &self,
    _req: VerifyNotificationChannelRequest,
    _options: RequestOptions,
) -> impl Future<Output = Result<NotificationChannel>> + Send
 
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.