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]
impl<F: Debug> Debug for FnCatch<F>fn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats 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]
impl<F, R, Body> Catch for FnCatch<F> where
F: Fn(&Request<()>, Error) -> R,
R: IntoFuture<Item = Response<Body>, Error = Error>,
Body: BufStream, type Body = Body
The HTTP response body type
type Future = R::Future
Future yielding the HTTP response.
fn catch(&mut self, request: &Request<()>, error: Error) -> Self::Future[src]
fn catch(&mut self, request: &Request<()>, error: Error) -> Self::FutureHandles an error. Read more
impl<F> Clone for FnCatch<F>[src]
impl<F> Clone for FnCatch<F>