pub struct FailoverConfig {
pub failover_on: Vec<String>,
pub retry_limit: u32,
}Expand description
Configuration for which error categories should trigger failover.
Fields§
§failover_on: Vec<String>Error categories that should trigger failover to a backup provider.
retry_limit: u32Maximum retries on the primary provider before failing over.
Trait Implementations§
Source§impl Clone for FailoverConfig
impl Clone for FailoverConfig
Source§fn clone(&self) -> FailoverConfig
fn clone(&self) -> FailoverConfig
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 moreSource§impl Debug for FailoverConfig
impl Debug for FailoverConfig
Auto Trait Implementations§
impl Freeze for FailoverConfig
impl RefUnwindSafe for FailoverConfig
impl Send for FailoverConfig
impl Sync for FailoverConfig
impl Unpin for FailoverConfig
impl UnsafeUnpin for FailoverConfig
impl UnwindSafe for FailoverConfig
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