Skip to main content

EventSubscribeUseCase

Trait EventSubscribeUseCase 

Source
pub trait EventSubscribeUseCase: Send + Sync {
    // Required methods
    fn subscribe<'life0, 'async_trait>(
        &'life0 self,
        chat_id: String,
        event_name: String,
    ) -> Pin<Box<dyn Future<Output = Result<(), Box<dyn Error + Send + Sync>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn list_subscribed_event<'life0, 'async_trait>(
        &'life0 self,
        chat_id: String,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<EventConfig>, Box<dyn Error + Send + Sync>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn unsubscribe<'life0, 'async_trait>(
        &'life0 self,
        chat_id: String,
        event_name: String,
    ) -> Pin<Box<dyn Future<Output = Result<(), Box<dyn Error + Send + Sync>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn subscribe<'life0, 'async_trait>( &'life0 self, chat_id: String, event_name: String, ) -> Pin<Box<dyn Future<Output = Result<(), Box<dyn Error + Send + Sync>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn list_subscribed_event<'life0, 'async_trait>( &'life0 self, chat_id: String, ) -> Pin<Box<dyn Future<Output = Result<Vec<EventConfig>, Box<dyn Error + Send + Sync>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn unsubscribe<'life0, 'async_trait>( &'life0 self, chat_id: String, event_name: String, ) -> Pin<Box<dyn Future<Output = Result<(), Box<dyn Error + Send + Sync>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§