Struct iron_inspect::Inspect [] [src]

pub struct Inspect<F, What> { /* fields omitted */ }

Methods

impl<F> Inspect<F, ()>
[src]

[src]

[src]

[src]

[src]

Trait Implementations

impl<F> BeforeMiddleware for Inspect<F, InspectRequest> where
    F: Send + Sync + 'static,
    F: Fn(&Request), 
[src]

[src]

Do whatever work this middleware should do with a Request object.

[src]

Respond to an error thrown by a previous BeforeMiddleware. Read more

impl<F> AfterMiddleware for Inspect<F, InspectResult> where
    F: Send + Sync + 'static,
    F: Fn(&Request, Result<&Response, &IronError>), 
[src]

[src]

Do whatever post-processing this middleware should do.

[src]

Respond to an error thrown by previous AfterMiddleware, the Handler, or a BeforeMiddleware. Read more

impl<F> AfterMiddleware for Inspect<F, InspectResponse> where
    F: Send + Sync + 'static,
    F: Fn(&Request, &Response), 
[src]

[src]

Do whatever post-processing this middleware should do.

[src]

Respond to an error thrown by previous AfterMiddleware, the Handler, or a BeforeMiddleware. Read more

impl<F> AfterMiddleware for Inspect<F, InspectError> where
    F: Send + Sync + 'static,
    F: Fn(&Request, &IronError), 
[src]

[src]

Respond to an error thrown by previous AfterMiddleware, the Handler, or a BeforeMiddleware. Read more

[src]

Do whatever post-processing this middleware should do.

Auto Trait Implementations

impl<F, What> Send for Inspect<F, What> where
    F: Send,
    What: Send

impl<F, What> Sync for Inspect<F, What> where
    F: Sync,
    What: Sync