pub struct BatchResult {
pub results: Vec<ExecutionResult>,
pub success_count: usize,
pub failure_count: usize,
pub reexecution_count: usize,
pub parallel_executed: bool,
}Expand description
Result of executing a batch of operations.
Fields§
§results: Vec<ExecutionResult>Results for each operation (in order).
success_count: usizeTotal number of successful operations.
failure_count: usizeTotal number of failed operations.
reexecution_count: usizeTotal number of re-executions performed.
parallel_executed: boolWhether parallel execution was used (vs fallback to sequential).
Implementations§
Source§impl BatchResult
impl BatchResult
Sourcepub fn all_succeeded(&self) -> bool
pub fn all_succeeded(&self) -> bool
Returns true if all operations succeeded.
Sourcepub fn failed_indices(&self) -> impl Iterator<Item = usize> + '_
pub fn failed_indices(&self) -> impl Iterator<Item = usize> + '_
Returns the indices of failed operations.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BatchResult
impl RefUnwindSafe for BatchResult
impl Send for BatchResult
impl Sync for BatchResult
impl Unpin for BatchResult
impl UnsafeUnpin for BatchResult
impl UnwindSafe for BatchResult
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