pub struct ProgressSummary {
pub total: usize,
pub completed: usize,
pub failed: usize,
pub operation_name: String,
}Fields§
§total: usize§completed: usize§failed: usize§operation_name: StringImplementations§
Source§impl ProgressSummary
impl ProgressSummary
pub fn new(operation_name: impl Into<String>, total: usize) -> Self
pub fn add_success(&mut self)
pub fn add_failure(&mut self)
pub const fn is_complete(&self) -> bool
pub fn success_rate(&self) -> f64
Trait Implementations§
Source§impl Debug for ProgressSummary
impl Debug for ProgressSummary
Auto Trait Implementations§
impl Freeze for ProgressSummary
impl RefUnwindSafe for ProgressSummary
impl Send for ProgressSummary
impl Sync for ProgressSummary
impl Unpin for ProgressSummary
impl UnwindSafe for ProgressSummary
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