pub trait MessageSubscriber: Send + Sync {
// Required method
fn try_consume_custom<'a, 'life0, 'async_trait>(
&'life0 self,
ctx: SubscriberContext<'a>,
constructor: u32,
data: &'a [u8],
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait;
}Expand description
ADNL custom messages subscriber
Required Methods§
fn try_consume_custom<'a, 'life0, 'async_trait>(
&'life0 self,
ctx: SubscriberContext<'a>,
constructor: u32,
data: &'a [u8],
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".