pub trait RetryPolicy:
Debug
+ PartialEq
+ Eq {
// Required methods
fn max_tries(&self) -> usize;
fn current_tries(&self) -> usize;
fn fail(&mut self);
fn succeed(&mut self);
fn is_down(&self) -> bool;
// Provided method
fn can_try(&self) -> Option<RetryAction> { ... }
}
Required Methods§
fn max_tries(&self) -> usize
fn current_tries(&self) -> usize
fn fail(&mut self)
fn succeed(&mut self)
fn is_down(&self) -> bool
Provided Methods§
fn can_try(&self) -> Option<RetryAction>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.