pub trait Handler<T: Sync> {
// Required method
fn handle<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
bot: &'life1 Bot,
update: &'life2 Update,
state: Option<&'life3 BotState<T>>,
) -> Pin<Box<dyn Future<Output = Result<(), HandlerError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait;
}Expand description
Required Methods§
Sourcefn handle<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
bot: &'life1 Bot,
update: &'life2 Update,
state: Option<&'life3 BotState<T>>,
) -> Pin<Box<dyn Future<Output = Result<(), HandlerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn handle<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
bot: &'life1 Bot,
update: &'life2 Update,
state: Option<&'life3 BotState<T>>,
) -> Pin<Box<dyn Future<Output = Result<(), HandlerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Handles an incoming update