Struct tower_web::error::FnCatch[][src]

pub struct FnCatch<F>(_);

Provides a Catch implementation using the provided Fn instance.

Trait Implementations

impl<F: Debug> Debug for FnCatch<F>
[src]

Formats the value using the given formatter. Read more

impl<F, R, Body> Catch for FnCatch<F> where
    F: Fn(&Request<()>, Error) -> R,
    R: IntoFuture<Item = Response<Body>, Error = Error>,
    Body: BufStream
[src]

The HTTP response body type

Future yielding the HTTP response.

Handles an error. Read more

impl<F> Clone for FnCatch<F>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl<F> Send for FnCatch<F> where
    F: Send + Sync

impl<F> Sync for FnCatch<F> where
    F: Send + Sync