Trait rings_core::message::MessageCallback
source · pub trait MessageCallback {
// Required methods
fn custom_message<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: &'life1 MessagePayload<Message>,
msg: &'life2 CustomMessage
) -> Pin<Box<dyn Future<Output = Vec<MessageHandlerEvent>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn builtin_message<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: &'life1 MessagePayload<Message>
) -> Pin<Box<dyn Future<Output = Vec<MessageHandlerEvent>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Expand description
Trait of message callback.
Required Methods§
sourcefn custom_message<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: &'life1 MessagePayload<Message>,
msg: &'life2 CustomMessage
) -> Pin<Box<dyn Future<Output = Vec<MessageHandlerEvent>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn custom_message<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, ctx: &'life1 MessagePayload<Message>, msg: &'life2 CustomMessage ) -> Pin<Box<dyn Future<Output = Vec<MessageHandlerEvent>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,
Message handler for custom message
sourcefn builtin_message<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: &'life1 MessagePayload<Message>
) -> Pin<Box<dyn Future<Output = Vec<MessageHandlerEvent>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn builtin_message<'life0, 'life1, 'async_trait>( &'life0 self, ctx: &'life1 MessagePayload<Message> ) -> Pin<Box<dyn Future<Output = Vec<MessageHandlerEvent>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,
Message handler for builtin message