pub trait RetryPolicy: Send + Sync {
    fn new_session(&self) -> Box<dyn RetrySession>;
    fn clone_boxed(&self) -> Box<dyn RetryPolicy>;
}
Expand description

Specifies a policy used to decide when to retry a query

Required methods

Called for each new query, starts a session of deciding about retries

Used to clone this RetryPolicy

Implementors