pub fn or<T, S, R>(reactors: R) -> <OrChain<R> as IntoReactor<T, S>>::Reactor
Expand description
Reacts with the given reactors in order until the first response.
This function accepts a type R
for which OrChain<R>
implements IntoReactor
. OrChain
implements this trait for collection types, most notably non-unary tuple types and Vec
of
Reactor
types.
The constructed reactor returns either the first response from the given reactors or the error
from the last reactor. See also the Reactor::or
function.