Struct iron_error_router::ErrorRouter
[−]
[src]
pub struct ErrorRouter { /* fields omitted */ }
Methods
impl ErrorRouter
[src]
fn new() -> Self
fn handle_status<T: Handler>(&mut self, status: Status, handler: T)
fn after_status<T: AfterMiddleware>(&mut self, status: Status, middleware: T)
fn modifier_for_status<T: Modifier<Response> + Send + Sync + Clone + 'static>(
&mut self,
status: Status,
modifier: T
)
&mut self,
status: Status,
modifier: T
)
Trait Implementations
impl Default for ErrorRouter
[src]
fn default() -> ErrorRouter
Returns the "default value" for a type. Read more
impl AfterMiddleware for ErrorRouter
[src]
fn after(&self, req: &mut Request, res: Response) -> IronResult<Response>
Do whatever post-processing this middleware should do.
fn catch(&self, req: &mut Request, err: IronError) -> IronResult<Response>
Respond to an error thrown by previous AfterMiddleware
, the Handler
, or a BeforeMiddleware
. Read more