pub fn or<S, E, T>(
handlers: T,
) -> impl Handler<S, E, Output = <T::Combinator as Handler<S, E>>::Output>where
T: OrChain<S, E>,
Expand description
Executes the handlers in a tuple or Vec
in order until a handler matches the event. If any
handler matches, then the output of that handler is returned, otherwise Handled::Unmatched
.
The output type must be the same for all handlers.