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,
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.
impl Modifier for JsonErrorHandler
[src]
impl Modifier for JsonErrorHandler
fn after_handle(
&self,
_: &mut Input,
result: Result<Output, Error>
) -> AfterHandle
[src]
fn after_handle(
&self,
_: &mut Input,
result: Result<Output, Error>
) -> AfterHandle
Modifies the returned value from a handler. Read more
fn before_handle(&self, input: &mut Input) -> BeforeHandle
[src]
fn before_handle(&self, input: &mut Input) -> BeforeHandle
Performs the process before calling the handler. Read more
Auto Trait Implementations
impl Send for JsonErrorHandler
impl Send for JsonErrorHandler
impl Sync for JsonErrorHandler
impl Sync for JsonErrorHandler