Struct git_features::progress::DoOrDiscard [−][src]
pub struct DoOrDiscard<T>(_);
An implementation of Progress
which can be created easily from Option<impl Progress>
.
Implementations
impl<T> DoOrDiscard<T> where
T: Progress,
[src]
impl<T> DoOrDiscard<T> where
T: Progress,
[src]Trait Implementations
impl<T> From<Option<T>> for DoOrDiscard<T> where
T: Progress,
[src]
impl<T> From<Option<T>> for DoOrDiscard<T> where
T: Progress,
[src]pub fn from(p: Option<T>) -> DoOrDiscard<T>
[src]
impl<T> Progress for DoOrDiscard<T> where
T: Progress,
[src]
impl<T> Progress for DoOrDiscard<T> where
T: Progress,
[src]type SubProgress = DoOrDiscard<<T as Progress>::SubProgress>
The type of progress returned by add_child()
.
pub fn add_child(
&mut self,
name: impl Into<String>
) -> <DoOrDiscard<T> as Progress>::SubProgress
[src]
&mut self,
name: impl Into<String>
) -> <DoOrDiscard<T> 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<T> RefUnwindSafe for DoOrDiscard<T> where
T: RefUnwindSafe,
impl<T> RefUnwindSafe for DoOrDiscard<T> where
T: RefUnwindSafe,
impl<T> Send for DoOrDiscard<T> where
T: Send,
impl<T> Send for DoOrDiscard<T> where
T: Send,
impl<T> Sync for DoOrDiscard<T> where
T: Sync,
impl<T> Sync for DoOrDiscard<T> where
T: Sync,
impl<T> Unpin for DoOrDiscard<T> where
T: Unpin,
impl<T> Unpin for DoOrDiscard<T> where
T: Unpin,
impl<T> UnwindSafe for DoOrDiscard<T> where
T: UnwindSafe,
impl<T> UnwindSafe for DoOrDiscard<T> where
T: UnwindSafe,