pub enum ProgressPhase {
Whole,
SourceScan,
RecoveryEncode,
}Expand description
Pass within a ProgressStage that runs more than one of them.
current, total, and bytes_processed are counted per pass, so a stage
with several passes restarts them at every pass boundary. The counts alone
cannot mark that boundary: creation’s source scan counts files while its
recovery encode counts stripes, and the two totals coincide whenever a set
has as many files as the encoder has stripes. Consumers that reset
per-pass state must key on this field, never on a change in total.
Variants§
Whole
The stage runs a single pass, or the emitter does not subdivide it.
SourceScan
Creation’s source scan: reading and hashing the input files.
RecoveryEncode
Creation’s recovery encode: computing the recovery slices.
Trait Implementations§
Source§impl Clone for ProgressPhase
impl Clone for ProgressPhase
Source§fn clone(&self) -> ProgressPhase
fn clone(&self) -> ProgressPhase
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ProgressPhase
Source§impl Debug for ProgressPhase
impl Debug for ProgressPhase
Source§impl Default for ProgressPhase
impl Default for ProgressPhase
Source§fn default() -> ProgressPhase
fn default() -> ProgressPhase
Returns the “default value” for a type. Read more
impl Eq for ProgressPhase
Source§impl PartialEq for ProgressPhase
impl PartialEq for ProgressPhase
impl StructuralPartialEq for ProgressPhase
Auto Trait Implementations§
impl Freeze for ProgressPhase
impl RefUnwindSafe for ProgressPhase
impl Send for ProgressPhase
impl Sync for ProgressPhase
impl Unpin for ProgressPhase
impl UnsafeUnpin for ProgressPhase
impl UnwindSafe for ProgressPhase
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> 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