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;
}