pub trait RetryPolicy: Debug + Send + Sync {
    // Required methods
    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§

source

fn new_session(&self) -> Box<dyn RetrySession>

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

source

fn clone_boxed(&self) -> Box<dyn RetryPolicy>

Used to clone this RetryPolicy

Trait Implementations§

source§

impl Clone for Box<dyn RetryPolicy>

source§

fn clone(&self) -> Box<dyn RetryPolicy>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Implementors§