pub struct RequestLogging;Expand description
Logs HTTP request/response pairs as structured tracing events.
Captures method, URI, status code, body sizes, and duration. When the
logging feature is enabled on the ironic crate, these events are
automatically persisted by [TimeSeriesLayer].
Register on a CompiledHttpApplication:
ⓘ
.middleware(RequestLogging::new())Implementations§
Trait Implementations§
Source§impl Clone for RequestLogging
impl Clone for RequestLogging
Source§fn clone(&self) -> RequestLogging
fn clone(&self) -> RequestLogging
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RequestLogging
Source§impl Debug for RequestLogging
impl Debug for RequestLogging
Source§impl Default for RequestLogging
impl Default for RequestLogging
Source§fn default() -> RequestLogging
fn default() -> RequestLogging
Returns the “default value” for a type. Read more
Source§impl Middleware for RequestLogging
impl Middleware for RequestLogging
Source§fn handle<'a>(
&'a self,
context: &'a mut RequestContext,
next: MiddlewareNext<'a>,
) -> PipelineFuture<'a>
fn handle<'a>( &'a self, context: &'a mut RequestContext, next: MiddlewareNext<'a>, ) -> PipelineFuture<'a>
Executes this middleware.
Auto Trait Implementations§
impl Freeze for RequestLogging
impl RefUnwindSafe for RequestLogging
impl Send for RequestLogging
impl Sync for RequestLogging
impl Unpin for RequestLogging
impl UnsafeUnpin for RequestLogging
impl UnwindSafe for RequestLogging
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