pub struct FailoverPolicy;Implementations§
Source§impl FailoverPolicy
impl FailoverPolicy
pub fn decide(&self, error: &ProviderError, has_next: bool) -> FailoverDecision
pub fn ordered_targets( &self, targets: impl IntoIterator<Item = FailoverTarget>, ) -> Result<Vec<FailoverTarget>, ProviderError>
Trait Implementations§
Source§impl Clone for FailoverPolicy
impl Clone for FailoverPolicy
Source§fn clone(&self) -> FailoverPolicy
fn clone(&self) -> FailoverPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for FailoverPolicy
Source§impl Debug for FailoverPolicy
impl Debug for FailoverPolicy
Source§impl Default for FailoverPolicy
impl Default for FailoverPolicy
Source§fn default() -> FailoverPolicy
fn default() -> FailoverPolicy
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FailoverPolicy
impl RefUnwindSafe for FailoverPolicy
impl Send for FailoverPolicy
impl Sync for FailoverPolicy
impl Unpin for FailoverPolicy
impl UnsafeUnpin for FailoverPolicy
impl UnwindSafe for FailoverPolicy
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