pub trait ProgressBars {
type P: Progress;
// Required methods
fn progress_hidden(&self) -> Self::P;
fn progress_spinner(&self, prefix: impl Into<Cow<'static, str>>) -> Self::P;
fn progress_counter(&self, prefix: impl Into<Cow<'static, str>>) -> Self::P;
fn progress_bytes(&self, prefix: impl Into<Cow<'static, str>>) -> Self::P;
}
Expand description
Trait to start progress information report progress information for any rustic action which supports that.
Implement this trait when you want to display this progress to your users.
Required Associated Types§
Required Methods§
Start a new progress, which is hidden
Sourcefn progress_spinner(&self, prefix: impl Into<Cow<'static, str>>) -> Self::P
fn progress_spinner(&self, prefix: impl Into<Cow<'static, str>>) -> Self::P
Start a new progress spinner. Note that this progress doesn’t get a length and is not advanced, only finished.
§Arguments
prefix
- The prefix of the progress
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.