pub struct LogContextService<S, R> { /* private fields */ }
Expand description
A service which wraps another service and creates a log context for each request.
Implementations§
Trait Implementations§
Source§impl<S: Clone, R> Clone for LogContextService<S, R>
impl<S: Clone, R> Clone for LogContextService<S, R>
Source§impl<S, R> Service<R> for LogContextService<S, R>where
S: Service<R>,
impl<S, R> Service<R> for LogContextService<S, R>where
S: Service<R>,
Source§type Future = TaskLocalFuture<LogContext, PollRecordingFuture<<S as Service<R>>::Future>>
type Future = TaskLocalFuture<LogContext, PollRecordingFuture<<S as Service<R>>::Future>>
The future response value.
Auto Trait Implementations§
impl<S, R> Freeze for LogContextService<S, R>where
S: Freeze,
impl<S, R> RefUnwindSafe for LogContextService<S, R>where
S: RefUnwindSafe,
impl<S, R> Send for LogContextService<S, R>where
S: Send,
impl<S, R> Sync for LogContextService<S, R>where
S: Sync,
impl<S, R> Unpin for LogContextService<S, R>where
S: Unpin,
impl<S, R> UnwindSafe for LogContextService<S, R>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