pub enum RecoveryStrategy {
Retry {
policy: RetryPolicy,
},
AlternativeBootstrap {
nodes: Vec<SocketAddr>,
},
RelayFallback {
relay_servers: Vec<SocketAddr>,
},
ConnectionMigration {
new_path: SocketAddr,
},
GracefulDegradation {
reduced_functionality: bool,
},
}Expand description
Recovery strategies
Variants§
Retry
Simple retry with backoff
Fields
§
policy: RetryPolicyAlternativeBootstrap
Try alternative bootstrap nodes
Fields
§
nodes: Vec<SocketAddr>RelayFallback
Use relay fallback
Fields
§
relay_servers: Vec<SocketAddr>ConnectionMigration
Connection migration to new path
Fields
§
new_path: SocketAddrGracefulDegradation
Graceful degradation
Trait Implementations§
Source§impl Clone for RecoveryStrategy
impl Clone for RecoveryStrategy
Source§fn clone(&self) -> RecoveryStrategy
fn clone(&self) -> RecoveryStrategy
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RecoveryStrategy
impl RefUnwindSafe for RecoveryStrategy
impl Send for RecoveryStrategy
impl Sync for RecoveryStrategy
impl Unpin for RecoveryStrategy
impl UnwindSafe for RecoveryStrategy
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