pub struct RpcLogger<S> { /* private fields */ }
Expand description
A middleware that logs each RPC call and response.
Trait Implementations§
source§impl<'a, S> RpcServiceT<'a> for RpcLogger<S>where
S: RpcServiceT<'a>,
impl<'a, S> RpcServiceT<'a> for RpcLogger<S>where
S: RpcServiceT<'a>,
source§type Future = Instrumented<ResponseFuture<<S as RpcServiceT<'a>>::Future>>
type Future = Instrumented<ResponseFuture<<S as RpcServiceT<'a>>::Future>>
The future response value.
Auto Trait Implementations§
impl<S> Freeze for RpcLogger<S>where
S: Freeze,
impl<S> RefUnwindSafe for RpcLogger<S>where
S: RefUnwindSafe,
impl<S> Send for RpcLogger<S>where
S: Send,
impl<S> Sync for RpcLogger<S>where
S: Sync,
impl<S> Unpin for RpcLogger<S>where
S: Unpin,
impl<S> UnwindSafe for RpcLogger<S>where
S: UnwindSafe,
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