pub struct BisectOutcomes<E> {
pub items: Vec<ItemOutcome<E>>,
pub probes_used: usize,
pub transient_retries: usize,
pub last_error: Option<E>,
}Expand description
The result of a completed search: one outcome per input item, plus what it cost.
Fields§
§items: Vec<ItemOutcome<E>>One entry per input item, in input order.
probes_used: usizeProbes actually spent, net of refunded transient re-probes.
transient_retries: usizeTransient re-probes taken (refunded, so not counted in probes_used).
last_error: Option<E>The most recent error from a probe spanning more than one item — what a
caller quotes when explaining an ItemOutcome::Unresolved.
None when every failure reached a single-item probe, since each of
those hands its error to ItemOutcome::Failed.
Trait Implementations§
Auto Trait Implementations§
impl<E> Freeze for BisectOutcomes<E>
impl<E> RefUnwindSafe for BisectOutcomes<E>
impl<E> Send for BisectOutcomes<E>
impl<E> Sync for BisectOutcomes<E>
impl<E> Unpin for BisectOutcomes<E>
impl<E> UnsafeUnpin for BisectOutcomes<E>
impl<E> UnwindSafe for BisectOutcomes<E>
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> 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 more