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