Trait MessagePeek

Source
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§

Source

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.

Source

fn boxed_clone(&self) -> Box<dyn MessagePeek + Send + Sync>

Trait Implementations§

Source§

impl Clone for Box<dyn MessagePeek + Send + Sync>

Source§

fn clone(&self) -> Box<dyn MessagePeek + Send + Sync>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Implementors§