Enum git_features::progress::Either [−][src]
pub enum Either<L, R> {
Left(L),
Right(R),
}An implementation of Progress showing either one or the other implementation.
Useful in conjunction with Discard and a working implementation, making it as a form of Option<Progress> which
can be passed to methods requiring impl Progress.
See DoOrDiscard for an incarnation of this.
Variants
Trait Implementations
impl<L, R> Progress for Either<L, R> where
R: Progress,
L: Progress, [src]
impl<L, R> Progress for Either<L, R> where
R: Progress,
L: Progress, [src]type SubProgress = Either<<L as Progress>::SubProgress, <R as Progress>::SubProgress>
The type of progress returned by add_child().
pub fn add_child(
&mut self,
name: impl Into<String>
) -> <Either<L, R> as Progress>::SubProgress[src]
&mut self,
name: impl Into<String>
) -> <Either<L, R> as Progress>::SubProgress
pub fn init(&mut self, max: Option<usize>, unit: Option<Unit>)[src]
pub fn set(&mut self, step: usize)[src]
pub fn unit(&self) -> Option<Unit>[src]
pub fn max(&self) -> Option<usize>[src]
pub fn step(&self) -> usize[src]
pub fn inc_by(&mut self, step: usize)[src]
pub fn set_name(&mut self, name: impl Into<String>)[src]
pub fn name(&self) -> Option<String>[src]
pub fn message(&mut self, level: MessageLevel, message: impl Into<String>)[src]
pub fn inc(&mut self)[src]
pub fn info(&mut self, message: impl Into<String>)[src]
pub fn done(&mut self, message: impl Into<String>)[src]
pub fn fail(&mut self, message: impl Into<String>)[src]
pub fn show_throughput(&mut self, start: Instant)[src]
pub fn show_throughput_with(&mut self, start: Instant, step: usize, unit: Unit)[src]
Auto Trait Implementations
impl<L, R> RefUnwindSafe for Either<L, R> where
L: RefUnwindSafe,
R: RefUnwindSafe,
impl<L, R> RefUnwindSafe for Either<L, R> where
L: RefUnwindSafe,
R: RefUnwindSafe, impl<L, R> UnwindSafe for Either<L, R> where
L: UnwindSafe,
R: UnwindSafe,
impl<L, R> UnwindSafe for Either<L, R> where
L: UnwindSafe,
R: UnwindSafe,