Trait scylla::transport::retry_policy::RetryPolicy
source · [−]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
fn new_session(&self) -> Box<dyn RetrySession>
fn new_session(&self) -> Box<dyn RetrySession>
Called for each new query, starts a session of deciding about retries
fn clone_boxed(&self) -> Box<dyn RetryPolicy>
fn clone_boxed(&self) -> Box<dyn RetryPolicy>
Used to clone this RetryPolicy