pub trait RetryPolicy:
Debug
+ Send
+ Sync {
// Required method
fn new_session(&self) -> Box<dyn RetrySession>;
}
Expand description
Specifies a policy used to decide when to retry a query
Required Methods§
Sourcefn 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