pub struct EchoProcessor;Expand description
A MessageProcess implementation which echoes back the original message.
Trait Implementations§
Source§impl Clone for EchoProcessor
impl Clone for EchoProcessor
Source§fn clone(&self) -> EchoProcessor
fn clone(&self) -> EchoProcessor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl MessageProcess for EchoProcessor
impl MessageProcess for EchoProcessor
Source§fn process<'life0, 'life1, 'async_trait>(
&'life0 mut self,
msg: &'life1 Message,
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, MessageError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn process<'life0, 'life1, 'async_trait>(
&'life0 mut self,
msg: &'life1 Message,
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, 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 MessageProcess + Send + Sync>
Auto Trait Implementations§
impl Freeze for EchoProcessor
impl RefUnwindSafe for EchoProcessor
impl Send for EchoProcessor
impl Sync for EchoProcessor
impl Unpin for EchoProcessor
impl UnsafeUnpin for EchoProcessor
impl UnwindSafe for EchoProcessor
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