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 DefaultErrorHandlerpub fn new() -> DefaultErrorHandler[src]
pub fn new() -> DefaultErrorHandlerCreates a new instance of DefaultErrorHandler.
Trait Implementations
impl Debug for DefaultErrorHandler[src]
impl Debug for DefaultErrorHandlerfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Default for DefaultErrorHandler[src]
impl Default for DefaultErrorHandlerfn default() -> DefaultErrorHandler[src]
fn default() -> DefaultErrorHandlerReturns the "default value" for a type. Read more
impl ErrorHandler for DefaultErrorHandler[src]
impl ErrorHandler for DefaultErrorHandlerfn 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 DefaultErrorHandlerimpl Sync for DefaultErrorHandler
impl Sync for DefaultErrorHandler