Struct tsukuyomi::error::handler::DefaultErrorHandler [−][src]
pub struct DefaultErrorHandler { /* fields omitted */ }
An implementor of ErrorHandler
used in App
by default.
Methods
impl DefaultErrorHandler
[src]
impl DefaultErrorHandler
pub fn new() -> DefaultErrorHandler
[src]
pub fn new() -> DefaultErrorHandler
Creates a new instance of DefaultErrorHandler
.
Trait Implementations
impl Debug for DefaultErrorHandler
[src]
impl Debug for DefaultErrorHandler
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Default for DefaultErrorHandler
[src]
impl Default for DefaultErrorHandler
fn default() -> DefaultErrorHandler
[src]
fn default() -> DefaultErrorHandler
Returns the "default value" for a type. Read more
impl ErrorHandler for DefaultErrorHandler
[src]
impl ErrorHandler for DefaultErrorHandler
fn handle_error(
&self,
err: &HttpError,
_: &Request<()>
) -> Result<Response<ResponseBody>, CritError>
[src]
fn handle_error(
&self,
err: &HttpError,
_: &Request<()>
) -> Result<Response<ResponseBody>, CritError>
Creates an HTTP response from the provided error value.
Auto Trait Implementations
impl Send for DefaultErrorHandler
impl Send for DefaultErrorHandler
impl Sync for DefaultErrorHandler
impl Sync for DefaultErrorHandler