Trait MessageQueue
Source pub trait MessageQueue: Send + Sync {
// Required methods
fn publish<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
topic: &'life1 str,
message: &'life2 [u8],
) -> Pin<Box<dyn Future<Output = Result<(), RevokeError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait;
fn subscribe<'life0, 'life1, 'async_trait>(
&'life0 self,
topic: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn Stream<Item = Vec<u8>> + Unpin + Send>, RevokeError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
}