Struct tower_web::middleware::log::LogMiddleware[][src]

pub struct LogMiddleware { /* fields omitted */ }

Decorate a service by logging all received requests.

Methods

impl LogMiddleware
[src]

Create a new LogMiddleware instance configured to use target.

Trait Implementations

impl Debug for LogMiddleware
[src]

Formats the value using the given formatter. Read more

impl<S, RequestBody, ResponseBody> Middleware<S> for LogMiddleware where
    S: Service<Request = Request<RequestBody>, Response = Response<ResponseBody>>,
    S::Error: Error
[src]

The wrapped service request type

The wrapped service response type

The wrapped service's error type

The wrapped service

Wrap the given service with the middleware, returning a new service that has been decorated with the middleware. Read more

Return a new Middleware instance that applies both self and middleware to services being wrapped. Read more

Auto Trait Implementations

impl Send for LogMiddleware

impl Sync for LogMiddleware