pub struct NoopPeeker;
Expand description
A MessagePeek implementation which does nothing.
Trait Implementations§
Source§impl Clone for NoopPeeker
impl Clone for NoopPeeker
Source§fn clone(&self) -> NoopPeeker
fn clone(&self) -> NoopPeeker
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl MessagePeek for NoopPeeker
impl MessagePeek for NoopPeeker
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,
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,
Echoe back the request message.
fn boxed_clone(&self) -> Box<dyn MessagePeek + Send + Sync>
Auto Trait Implementations§
impl Freeze for NoopPeeker
impl RefUnwindSafe for NoopPeeker
impl Send for NoopPeeker
impl Sync for NoopPeeker
impl Unpin for NoopPeeker
impl UnwindSafe for NoopPeeker
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more