fn fail_from_after(&self, req: &mut Request, index: usize,
                       mut err: IronError) -> IronResult<Response> {
        // If this was the last after, we're done.
        if index == self.afters.len() { return Err(err) }

        for (i, after) in self.afters[index..].iter().enumerate() {
            err = match after.catch(req, err) {
                Err(err) => err,
                Ok(res) => return self.continue_from_after(req, index + i + 1, res)
            }
        }

        // Done
        Err(err)
    }
// Enter the error flow from an errored after middleware, starting
// with the passed index.
//
// If the index is out of bounds for the after middleware Vec,
// this instead just returns the passed error.
Enter the error flow from an errored after middleware, starting
with the passed index.

If the index is out of bounds for the after middleware Vec,
this instead just returns the passed error.
Enter the error flow from an errored after middleware starting with the passed index . If the index is out of bounds for the after middleware Vec this instead just returns the passed error .
fn fail_from_after(&self, req: &mut Request, index: usize,
                       mut err: IronError) -> IronResult<Response> {
        // If this was the last after, we're done.
        if index == self.afters.len() { return Err(err) }
        for (i, after) in self.afters[index..].iter().enumerate() {
            err = match after.catch(req, err) {
                Err(err) => err,
                Ok(res) => return self.continue_from_after(req, index + i + 1, res)
            }
        }
        // Done
        Err(err)
    }
fn fail_from_after ( & self , req : & mut Request , index : usize , mut err : IronError ) -> IronResult < Response > { // If this was the last after, we're done. if index == self . afters . len ( ) { return Err ( err ) } for ( i , after ) in self . afters [ index .. ] . iter ( ) . enumerate ( ) { err = match after . catch ( req , err ) { Err ( err ) => err , Ok ( res ) => return self . continue_from_after ( req , index + i + 1 , res ) } } // Done Err ( err ) }
Enter the error flow from an errored after middleware, starting
with the passed index.
Enter the error flow from an errored after middleware starting with the passed index .
&self
req
&mut Request
index
usize
err
IronError