and

Function and 

Source
pub fn and<T, S, R>(reactors: R) -> <AndChain<R> as IntoReactor<T, S>>::Reactor
where AndChain<R>: IntoReactor<T, S>, T: Clone,
Expand description

Reacts with the given reactors in order until the first error.

This function accepts a type R for which AndChain<R> implements IntoReactor. AndChain implements this trait for collection types, most notably non-unary tuple types and Vec of Reactor types.

The constructed reactor returns either the responses from the given reactors or the first encountered error. See also the Reactor::and function.