Struct tower_web::error::DefaultCatch[][src]

pub struct DefaultCatch { /* fields omitted */ }

The default Catch instance used when none is specified.

This implementation provides basic error handling by generating simple HTTP responses based on the error type.

Methods

impl DefaultCatch
[src]

Create a new DefaultCatch instance.

Trait Implementations

impl Debug for DefaultCatch
[src]

Formats the value using the given formatter. Read more

impl Clone for DefaultCatch
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<S> IntoCatch<S> for DefaultCatch where
    S: Serializer
[src]

The Catch value being converted to

Convert self into a Catch value.

impl Catch for DefaultCatch
[src]

Implements Catch by returning an HTTP response with the appropriate status code.

The HTTP response will include a basic error message in the response body.

The HTTP response body type

Future yielding the HTTP response.

Handles an error. Read more

Auto Trait Implementations

impl Send for DefaultCatch

impl Sync for DefaultCatch