pub struct LoggingMiddleware { /* private fields */ }Expand description
Logging middleware for request/response tracking
Implementations§
Source§impl LoggingMiddleware
impl LoggingMiddleware
pub fn new() -> LoggingMiddleware
pub fn requests_only() -> LoggingMiddleware
pub fn with_notifications(self, log_notifications: bool) -> LoggingMiddleware
Trait Implementations§
Source§impl Default for LoggingMiddleware
impl Default for LoggingMiddleware
Source§fn default() -> LoggingMiddleware
fn default() -> LoggingMiddleware
Returns the “default value” for a type. Read more
Source§impl TransportMiddleware for LoggingMiddleware
impl TransportMiddleware for LoggingMiddleware
Source§fn process_outgoing<'life0, 'life1, 'async_trait>(
&'life0 self,
message: &'life1 mut JsonRpcMessage,
) -> Pin<Box<dyn Future<Output = Result<(), TransportError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
LoggingMiddleware: 'async_trait,
fn process_outgoing<'life0, 'life1, 'async_trait>(
&'life0 self,
message: &'life1 mut JsonRpcMessage,
) -> Pin<Box<dyn Future<Output = Result<(), TransportError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
LoggingMiddleware: 'async_trait,
Process outgoing message
Source§fn process_incoming<'life0, 'life1, 'async_trait>(
&'life0 self,
message: &'life1 mut JsonRpcMessage,
) -> Pin<Box<dyn Future<Output = Result<(), TransportError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
LoggingMiddleware: 'async_trait,
fn process_incoming<'life0, 'life1, 'async_trait>(
&'life0 self,
message: &'life1 mut JsonRpcMessage,
) -> Pin<Box<dyn Future<Output = Result<(), TransportError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
LoggingMiddleware: 'async_trait,
Process incoming message
Auto Trait Implementations§
impl Freeze for LoggingMiddleware
impl RefUnwindSafe for LoggingMiddleware
impl Send for LoggingMiddleware
impl Sync for LoggingMiddleware
impl Unpin for LoggingMiddleware
impl UnwindSafe for LoggingMiddleware
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