pub struct FailoverSuccess<R> {
pub provider: String,
pub response: R,
pub prior_errors: Vec<(String, AttemptError)>,
}Expand description
Successful failover result. prior_errors lists every retryable
failure we walked through to get here — useful for audit but not
for user output.
Fields§
§provider: String§response: R§prior_errors: Vec<(String, AttemptError)>Trait Implementations§
Source§impl<R> Clone for FailoverSuccess<R>where
R: Clone,
impl<R> Clone for FailoverSuccess<R>where
R: Clone,
Source§fn clone(&self) -> FailoverSuccess<R>
fn clone(&self) -> FailoverSuccess<R>
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 moreSource§impl<R> Debug for FailoverSuccess<R>where
R: Debug,
impl<R> Debug for FailoverSuccess<R>where
R: Debug,
Source§impl<R> PartialEq for FailoverSuccess<R>where
R: PartialEq,
impl<R> PartialEq for FailoverSuccess<R>where
R: PartialEq,
Source§fn eq(&self, other: &FailoverSuccess<R>) -> bool
fn eq(&self, other: &FailoverSuccess<R>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<R> StructuralPartialEq for FailoverSuccess<R>
Auto Trait Implementations§
impl<R> Freeze for FailoverSuccess<R>where
R: Freeze,
impl<R> RefUnwindSafe for FailoverSuccess<R>where
R: RefUnwindSafe,
impl<R> Send for FailoverSuccess<R>where
R: Send,
impl<R> Sync for FailoverSuccess<R>where
R: Sync,
impl<R> Unpin for FailoverSuccess<R>where
R: Unpin,
impl<R> UnsafeUnpin for FailoverSuccess<R>where
R: UnsafeUnpin,
impl<R> UnwindSafe for FailoverSuccess<R>where
R: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request