/// Specifies under which conditions a retry is attempted.
pubtraitCondition<E> {/// Whether an attempt should be retried or not.
fnshould_retry(&mutself, error:&E)->bool;}impl<E, F:FnMut(&E)->bool>Condition<E>forF{fnshould_retry(&mutself, error:&E)->bool{self(error)}}