pub struct ProgressReport<Data: Size> {
pub items: u64,
pub total: Data,
pub errors: u64,
}
Expand description
Scan progress.
Fields§
§items: u64
Number of scanned items.
total: Data
Total size of scanned items.
errors: u64
Number of occurred errors.
Implementations§
Trait Implementations§
source§impl<Data: Clone + Size> Clone for ProgressReport<Data>
impl<Data: Clone + Size> Clone for ProgressReport<Data>
source§fn clone(&self) -> ProgressReport<Data>
fn clone(&self) -> ProgressReport<Data>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<Data: Default + Size> Default for ProgressReport<Data>
impl<Data: Default + Size> Default for ProgressReport<Data>
source§fn default() -> ProgressReport<Data>
fn default() -> ProgressReport<Data>
Returns the “default value” for a type. Read more
source§impl<Data: Ord + Size> Ord for ProgressReport<Data>
impl<Data: Ord + Size> Ord for ProgressReport<Data>
source§fn cmp(&self, other: &ProgressReport<Data>) -> Ordering
fn cmp(&self, other: &ProgressReport<Data>) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<Data: PartialEq + Size> PartialEq for ProgressReport<Data>
impl<Data: PartialEq + Size> PartialEq for ProgressReport<Data>
source§fn eq(&self, other: &ProgressReport<Data>) -> bool
fn eq(&self, other: &ProgressReport<Data>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<Data: PartialOrd + Size> PartialOrd for ProgressReport<Data>
impl<Data: PartialOrd + Size> PartialOrd for ProgressReport<Data>
source§fn partial_cmp(&self, other: &ProgressReport<Data>) -> Option<Ordering>
fn partial_cmp(&self, other: &ProgressReport<Data>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<Data: Copy + Size> Copy for ProgressReport<Data>
impl<Data: Eq + Size> Eq for ProgressReport<Data>
impl<Data: Size> StructuralPartialEq for ProgressReport<Data>
Auto Trait Implementations§
impl<Data> RefUnwindSafe for ProgressReport<Data>where
Data: RefUnwindSafe,
impl<Data> Send for ProgressReport<Data>where
Data: Send,
impl<Data> Sync for ProgressReport<Data>where
Data: Sync,
impl<Data> Unpin for ProgressReport<Data>where
Data: Unpin,
impl<Data> UnwindSafe for ProgressReport<Data>where
Data: UnwindSafe,
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<X> Pipe for X
impl<X> Pipe for X
source§fn pipe_mut<'a, Return, Function>(&'a mut self, f: Function) -> Returnwhere
Function: FnOnce(&'a mut Self) -> Return,
fn pipe_mut<'a, Return, Function>(&'a mut self, f: Function) -> Returnwhere
Function: FnOnce(&'a mut Self) -> Return,
source§fn pipe_as_ref<'a, Param, Return, Function>(&'a self, f: Function) -> Return
fn pipe_as_ref<'a, Param, Return, Function>(&'a self, f: Function) -> Return
Apply
f
to &self
where f
takes a single parameter of type Param
and Self
implements trait AsRef<Param>
. Read moresource§fn pipe_as_mut<'a, Param, Return, Function>(&'a mut self, f: Function) -> Return
fn pipe_as_mut<'a, Param, Return, Function>(&'a mut self, f: Function) -> Return
Apply
f
to &mut self
where f
takes a single parameter of type Param
and Self
implements trait AsMut<Param>
. Read moresource§fn pipe_deref<'a, Param, Return, Function>(&'a self, f: Function) -> Return
fn pipe_deref<'a, Param, Return, Function>(&'a self, f: Function) -> Return
Apply
f
to &self
where f
takes a single parameter of type Param
and Self
implements trait Deref<Target = Param>
. Read moresource§fn pipe_deref_mut<'a, Param, Return, Function>(
&'a mut self,
f: Function
) -> Returnwhere
Self: DerefMut<Target = Param>,
Param: 'a + ?Sized,
Function: FnOnce(&'a mut Param) -> Return,
fn pipe_deref_mut<'a, Param, Return, Function>(
&'a mut self,
f: Function
) -> Returnwhere
Self: DerefMut<Target = Param>,
Param: 'a + ?Sized,
Function: FnOnce(&'a mut Param) -> Return,
Apply
f
to &mut self
where f
takes a single parameter of type Param
and Self
implements trait [DerefMut<Target = Param>
]. Read moresource§fn pipe_borrow<'a, Param, Return, Function>(&'a self, f: Function) -> Return
fn pipe_borrow<'a, Param, Return, Function>(&'a self, f: Function) -> Return
Apply
f
to &self
where f
takes a single parameter of type Param
and Self
implements trait Borrow<Param>
. Read moresource§fn pipe_borrow_mut<'a, Param, Return, Function>(
&'a mut self,
f: Function
) -> Return
fn pipe_borrow_mut<'a, Param, Return, Function>( &'a mut self, f: Function ) -> Return
Apply
f
to &mut self
where f
takes a single parameter of type Param
and Self
implements trait BorrowMut<Param>
. Read more