pub trait IInternalBotNotificationHandler: Send + Sync {
type TData: Sync + Send + for<'de> Deserialize<'de> + 'static;
type TOptions: Sync + Send + for<'de> Deserialize<'de> + 'static;
// Required method
fn handle<'life0, 'async_trait>(
&'life0 mut self,
data: Self::TData,
options: Self::TOptions,
request_context: RequestContext,
) -> Pin<Box<dyn Future<Output = CommandResult> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Required Associated Types§
type TData: Sync + Send + for<'de> Deserialize<'de> + 'static
type TOptions: Sync + Send + for<'de> Deserialize<'de> + 'static
Required Methods§
fn handle<'life0, 'async_trait>(
&'life0 mut self,
data: Self::TData,
options: Self::TOptions,
request_context: RequestContext,
) -> Pin<Box<dyn Future<Output = CommandResult> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".