Struct tsukuyomi::json::JsonErrorHandler [−][src]
pub struct JsonErrorHandler { /* fields omitted */ }
An error handler for creating JSON error responses.
Methods
impl JsonErrorHandler
[src]
impl JsonErrorHandler
pub fn new() -> JsonErrorHandler
[src]
pub fn new() -> JsonErrorHandler
Trait Implementations
impl Debug for JsonErrorHandler
[src]
impl Debug for JsonErrorHandler
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 JsonErrorHandler
[src]
impl Default for JsonErrorHandler
fn default() -> JsonErrorHandler
[src]
fn default() -> JsonErrorHandler
Returns the "default value" for a type. Read more
impl ErrorHandler for JsonErrorHandler
[src]
impl ErrorHandler for JsonErrorHandler
fn handle_error(
&self,
e: &HttpError,
_: &Request<()>
) -> Result<Response<ResponseBody>, CritError>
[src]
fn handle_error(
&self,
e: &HttpError,
_: &Request<()>
) -> Result<Response<ResponseBody>, CritError>
Creates an HTTP response from the provided error value.
Auto Trait Implementations
impl Send for JsonErrorHandler
impl Send for JsonErrorHandler
impl Sync for JsonErrorHandler
impl Sync for JsonErrorHandler