pub trait SubTrait {
type Item: DeserializeOwned + Send + Sync;
// Required method
fn subscribe<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<BoxStream<'_, Result<(Self::Item, Arc<dyn AckTrait + Send + Sync>), SubError>>, SubError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Subscription interface returning a stream of decoded items and ack handles.