pub struct TeeHandler { /* private fields */ }Expand description
Handler that logs messages passing through
Implementations§
Source§impl TeeHandler
impl TeeHandler
pub fn new(log_tx: UnboundedSender<LogEntry>) -> Self
Trait Implementations§
Source§impl JrMessageHandler for TeeHandler
impl JrMessageHandler for TeeHandler
Source§type Link = ProxyToConductor
type Link = ProxyToConductor
The role type for this handler’s connection.
Source§fn describe_chain(&self) -> impl Debug
fn describe_chain(&self) -> impl Debug
Returns a debug description of the registered handlers for diagnostics.
Source§async fn handle_message(
&mut self,
message: MessageCx,
_cx: JrConnectionCx<ProxyToConductor>,
) -> Result<Handled<MessageCx>, Error>
async fn handle_message( &mut self, message: MessageCx, _cx: JrConnectionCx<ProxyToConductor>, ) -> Result<Handled<MessageCx>, Error>
Attempt to claim an incoming message (request or notification). Read more
Auto Trait Implementations§
impl Freeze for TeeHandler
impl RefUnwindSafe for TeeHandler
impl Send for TeeHandler
impl Sync for TeeHandler
impl Unpin for TeeHandler
impl UnsafeUnpin for TeeHandler
impl UnwindSafe for TeeHandler
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