[−][src]Trait tower_web::error::IntoCatch
Convert Self into a value that implements Catch.
By implementing IntoCatch for a type, you define how it will be converted
into a Catch instance.
The Serializer configured for the service is provided. This allows the
Catch instance to be able to serialize responses.
Associated Types
Required Methods
fn into_catch(self) -> Self::Catch
Convert self into a Catch value.
Implementors
impl<F, R, Body, S> IntoCatch<S> for F where
F: Fn(&Request<()>, Error) -> R,
R: IntoFuture<Item = Response<Body>, Error = Error>,
Body: BufStream, [src]
impl<F, R, Body, S> IntoCatch<S> for F where
F: Fn(&Request<()>, Error) -> R,
R: IntoFuture<Item = Response<Body>, Error = Error>,
Body: BufStream, type Catch = FnCatch<F>
fn into_catch(self) -> Self::Catch[src]
fn into_catch(self) -> Self::Catchimpl<S> IntoCatch<S> for DefaultCatch where
S: Serializer, [src]
impl<S> IntoCatch<S> for DefaultCatch where
S: Serializer, type Catch = DefaultCatch
fn into_catch(self) -> Self::Catch[src]
fn into_catch(self) -> Self::Catch