pub trait MessagePeek {
// Required methods
fn peek<'life0, 'life1, 'async_trait>(
&'life0 mut self,
msg: &'life1 Message,
) -> Pin<Box<dyn Future<Output = Result<(), MessageError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn boxed_clone(&self) -> Box<dyn MessagePeek + Send + Sync>;
}
Expand description
A trait to peek the Message and returns success or error.
Required Methods§
Sourcefn peek<'life0, 'life1, 'async_trait>(
&'life0 mut self,
msg: &'life1 Message,
) -> Pin<Box<dyn Future<Output = Result<(), MessageError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn peek<'life0, 'life1, 'async_trait>(
&'life0 mut self,
msg: &'life1 Message,
) -> Pin<Box<dyn Future<Output = Result<(), MessageError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Async method to peek a message.