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]
impl DefaultCatchpub fn new() -> DefaultCatch[src]
pub fn new() -> DefaultCatchCreate a new DefaultCatch instance.
Trait Implementations
impl Debug for DefaultCatch[src]
impl Debug for DefaultCatchfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for DefaultCatch[src]
impl Clone for DefaultCatchfn clone(&self) -> DefaultCatch[src]
fn clone(&self) -> DefaultCatchReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl<S> IntoCatch<S> for DefaultCatch where
S: Serializer, [src]
impl<S> IntoCatch<S> for DefaultCatch where
S: Serializer, type Catch = DefaultCatch
The Catch value being converted to
fn into_catch(self) -> Self::Catch[src]
fn into_catch(self) -> Self::CatchConvert self into a Catch value.
impl Catch for DefaultCatch[src]
impl Catch for DefaultCatchImplements Catch by returning an HTTP response with the appropriate status
code.
The HTTP response will include a basic error message in the response body.
Auto Trait Implementations
impl Send for DefaultCatch
impl Send for DefaultCatchimpl Sync for DefaultCatch
impl Sync for DefaultCatch