pub struct ChainResult<O> {
pub value: O,
pub provider: String,
pub attempts: Vec<Attempt>,
}Expand description
Outcome of a successful FallbackChain::call.
Fields§
§value: OWhatever the winning provider returned.
provider: StringName of the provider that succeeded.
attempts: Vec<Attempt>Failed attempts that came before the success. Empty when the first provider worked.
Trait Implementations§
Auto Trait Implementations§
impl<O> Freeze for ChainResult<O>where
O: Freeze,
impl<O> !RefUnwindSafe for ChainResult<O>
impl<O> Send for ChainResult<O>where
O: Send,
impl<O> Sync for ChainResult<O>where
O: Sync,
impl<O> Unpin for ChainResult<O>where
O: Unpin,
impl<O> UnsafeUnpin for ChainResult<O>where
O: UnsafeUnpin,
impl<O> !UnwindSafe for ChainResult<O>
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