Struct tower_web::middleware::Identity[][src]

pub struct Identity { /* fields omitted */ }

A no-op middleware.

When wrapping a Service, the Identity middleware returns the provided service without modifying it.

Methods

impl Identity
[src]

Create a new Identity value

Trait Implementations

impl Debug for Identity
[src]

Formats the value using the given formatter. Read more

impl Default for Identity
[src]

Returns the "default value" for a type. Read more

impl Clone for Identity
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<S: Service> Middleware<S> for Identity
[src]

Decorates a Service, transforming either the request or the response.

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

impl<T> Chain<T> for Identity
[src]

The combined type

Combine self with other.

Auto Trait Implementations

impl Send for Identity

impl Sync for Identity