risingwave_common_service::observer_manager

Trait NotificationClient

source
pub trait NotificationClient:
    Send
    + Sync
    + 'static {
    type Channel: Channel<Item = SubscribeResponse>;

    // Required method
    fn subscribe<'life0, 'async_trait>(
        &'life0 self,
        subscribe_type: SubscribeType,
    ) -> Pin<Box<dyn Future<Output = Result<Self::Channel, ObserverError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Associated Types§

Required Methods§

source

fn subscribe<'life0, 'async_trait>( &'life0 self, subscribe_type: SubscribeType, ) -> Pin<Box<dyn Future<Output = Result<Self::Channel, ObserverError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§