Struct tsukuyomi::json::JsonErrorHandler [−][src]
pub struct JsonErrorHandler { /* fields omitted */ }An error handler for creating JSON error responses.
Methods
impl JsonErrorHandler[src]
impl JsonErrorHandlerpub fn new() -> JsonErrorHandler[src]
pub fn new() -> JsonErrorHandlerTrait Implementations
impl Debug for JsonErrorHandler[src]
impl Debug for JsonErrorHandlerfn 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 JsonErrorHandler[src]
impl Default for JsonErrorHandlerfn default() -> JsonErrorHandler[src]
fn default() -> JsonErrorHandlerReturns the "default value" for a type. Read more
impl ErrorHandler for JsonErrorHandler[src]
impl ErrorHandler for JsonErrorHandlerfn 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 JsonErrorHandlerfn after_handle(
&self,
_: &mut Input,
result: Result<Output, Error>
) -> AfterHandle[src]
fn after_handle(
&self,
_: &mut Input,
result: Result<Output, Error>
) -> AfterHandleModifies the returned value from a handler. Read more
fn before_handle(&self, input: &mut Input) -> BeforeHandle[src]
fn before_handle(&self, input: &mut Input) -> BeforeHandlePerforms the process before calling the handler. Read more
Auto Trait Implementations
impl Send for JsonErrorHandler
impl Send for JsonErrorHandlerimpl Sync for JsonErrorHandler
impl Sync for JsonErrorHandler