pub struct FailoverResult<T> {
pub value: T,
pub failed_over: bool,
pub primary_attempts: u32,
}Expand description
Result of a failover-aware execution.
Fields§
§value: TThe successful value.
failed_over: boolWhether failover to a backup provider occurred.
primary_attempts: u32Number of attempts on the primary provider.
Trait Implementations§
Source§impl<T: Clone> Clone for FailoverResult<T>
impl<T: Clone> Clone for FailoverResult<T>
Source§fn clone(&self) -> FailoverResult<T>
fn clone(&self) -> FailoverResult<T>
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<T> Freeze for FailoverResult<T>where
T: Freeze,
impl<T> RefUnwindSafe for FailoverResult<T>where
T: RefUnwindSafe,
impl<T> Send for FailoverResult<T>where
T: Send,
impl<T> Sync for FailoverResult<T>where
T: Sync,
impl<T> Unpin for FailoverResult<T>where
T: Unpin,
impl<T> UnsafeUnpin for FailoverResult<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for FailoverResult<T>where
T: UnwindSafe,
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