pub struct Forwarder;Expand description
MessageProcessor that forwards raw ResponseMessage objects without transformation.
Trait Implementations§
Source§impl MessageProcessor for Forwarder
impl MessageProcessor for Forwarder
Source§type Output = ResponseMessage
type Output = ResponseMessage
The processed message type produced by
process_messageSource§fn process_message(&mut self, message: ResponseMessage) -> Option<Self::Output>
fn process_message(&mut self, message: ResponseMessage) -> Option<Self::Output>
Process an incoming
ResponseMessage. Read moreSource§fn on_message_received(&mut self, raw: Bytes, message: &ResponseMessage)
fn on_message_received(&mut self, raw: Bytes, message: &ResponseMessage)
Called with the raw JSON bytes and a reference to the parsed message
before
Self::process_message. Read moreAuto Trait Implementations§
impl Freeze for Forwarder
impl RefUnwindSafe for Forwarder
impl Send for Forwarder
impl Sync for Forwarder
impl Unpin for Forwarder
impl UnwindSafe for Forwarder
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