Struct scylla::transport::downgrading_consistency_retry_policy::DowngradingConsistencyRetryPolicy
source · pub struct DowngradingConsistencyRetryPolicy;
Expand description
Downgrading consistency retry policy - retries with lower consistency level if it knows
that the initial CL is unreachable. Also, it behaves as DefaultRetryPolicy
when it believes that the initial CL is reachable.
Behaviour based on [DataStax Java Driver]
(https://docs.datastax.com/en/drivers/java/3.11/com/datastax/driver/core/policies/DowngradingConsistencyRetryPolicy.html)
Implementations§
Trait Implementations§
source§impl Default for DowngradingConsistencyRetryPolicy
impl Default for DowngradingConsistencyRetryPolicy
source§fn default() -> DowngradingConsistencyRetryPolicy
fn default() -> DowngradingConsistencyRetryPolicy
Returns the “default value” for a type. Read more
source§impl RetryPolicy for DowngradingConsistencyRetryPolicy
impl RetryPolicy for DowngradingConsistencyRetryPolicy
source§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
source§fn clone_boxed(&self) -> Box<dyn RetryPolicy>
fn clone_boxed(&self) -> Box<dyn RetryPolicy>
Used to clone this RetryPolicy
Auto Trait Implementations§
impl RefUnwindSafe for DowngradingConsistencyRetryPolicy
impl Send for DowngradingConsistencyRetryPolicy
impl Sync for DowngradingConsistencyRetryPolicy
impl Unpin for DowngradingConsistencyRetryPolicy
impl UnwindSafe for DowngradingConsistencyRetryPolicy
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more