pub fn until_first_match<H, S, E>(
    handler: H
) -> impl Handler<S, E, Output = H::Output>
where H: Handler<S, E>,
Expand description

Stops executing its composed handler after its first match.

This function constructs a handler that forwards events to the composed handler until it returns Handled::Matched. After this occurs, the composed handler is no longer executed and the adapter always returns Handled::Unmatched.