Trait rings_node::prelude::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, Global>> + Send + 'async_trait, Global>>
where 'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait;
fn builtin_message<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: &'life1 MessagePayload<Message>
) -> Pin<Box<dyn Future<Output = Vec<MessageHandlerEvent, Global>> + Send + 'async_trait, Global>>
where 'life0: 'async_trait,
'life1: 'async_trait,
Self: '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, Global>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: '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, Global>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, Self: '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, Global>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn builtin_message<'life0, 'life1, 'async_trait>( &'life0 self, ctx: &'life1 MessagePayload<Message> ) -> Pin<Box<dyn Future<Output = Vec<MessageHandlerEvent, Global>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, 'life1: 'async_trait, Self: 'async_trait,
Message handler for builtin message