[][src]Macro httptest::cycle

macro_rules! cycle {
    ($($x:expr),*) => { ... };
    ($($x:expr,)*) => { ... };
}

a Responder that cycles through a list of responses.

The macro exists to conveniently box a list of responders and put them into a Vec<Box<dyn Responder>>. The translation is:

cycle![a, b] => cycle(vec![Box::new(a), Box::new(b)])