Function attempt_fallbacks

Source
pub(crate) fn attempt_fallbacks(
    fallbacks: Vec<Box<dyn Fn() -> Result<i32>>>,
) -> Result<i32>
Expand description

For a set of ordered commands to attempt, gracefully cycle through them until one of them works