pub trait RetrySession: Send + Sync {
    fn decide_should_retry(
        &mut self,
        query_info: QueryInfo<'_>
    ) -> RetryDecision; fn reset(&mut self); }
Expand description

Used throughout a single query to decide when to retry it After this query is finished it is destroyed or reset

Required methods

Called after the query failed - decide what to do next

Reset before using for a new query