pub struct BulkOperationProgress {
pub total: usize,
pub processed: usize,
pub succeeded: usize,
pub failed: usize,
}Expand description
Tracks live progress of an in-flight bulk operation.
Useful for streaming progress updates or building progress bars.
Fields§
§total: usizeTotal number of items submitted.
processed: usizeItems processed so far (succeeded + failed).
succeeded: usizeItems that completed successfully.
failed: usizeItems that failed.
Implementations§
Source§impl BulkOperationProgress
impl BulkOperationProgress
pub fn new(total: usize) -> Self
pub fn record_success(&mut self)
pub fn record_failure(&mut self)
pub fn is_complete(&self) -> bool
pub fn success_rate(&self) -> f64
Trait Implementations§
Source§impl Clone for BulkOperationProgress
impl Clone for BulkOperationProgress
Source§impl Debug for BulkOperationProgress
impl Debug for BulkOperationProgress
Auto Trait Implementations§
impl Freeze for BulkOperationProgress
impl RefUnwindSafe for BulkOperationProgress
impl Send for BulkOperationProgress
impl Sync for BulkOperationProgress
impl Unpin for BulkOperationProgress
impl UnsafeUnpin for BulkOperationProgress
impl UnwindSafe for BulkOperationProgress
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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 more