pub struct ProgressOptions {
pub no_progress: bool,
pub progress_interval: Option<Duration>,
}Expand description
Progress Bar Config
Fields§
§no_progress: boolDon’t show any progress bar
progress_interval: Option<Duration>Interval to update progress bars (default: 100ms)
Implementations§
Source§impl ProgressOptions
impl ProgressOptions
Sourcefn progress_interval(&self) -> Duration
fn progress_interval(&self) -> Duration
Get the progress interval
Sourcepub fn no_progress() -> RusticProgress
pub fn no_progress() -> RusticProgress
Create a hidden progress bar
Trait Implementations§
Source§impl Args for ProgressOptions
impl Args for ProgressOptions
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Clone for ProgressOptions
impl Clone for ProgressOptions
Source§fn clone(&self) -> ProgressOptions
fn clone(&self) -> ProgressOptions
Returns a duplicate 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 CommandFactory for ProgressOptions
impl CommandFactory for ProgressOptions
Source§impl Debug for ProgressOptions
impl Debug for ProgressOptions
Source§impl Default for ProgressOptions
impl Default for ProgressOptions
Source§fn default() -> ProgressOptions
fn default() -> ProgressOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ProgressOptionswhere
ProgressOptions: Default,
impl<'de> Deserialize<'de> for ProgressOptionswhere
ProgressOptions: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl FromArgMatches for ProgressOptions
impl FromArgMatches for ProgressOptions
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§impl Merge for ProgressOptions
impl Merge for ProgressOptions
Source§impl Parser for ProgressOptions
impl Parser for ProgressOptions
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Parse from iterator, exit on error.
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Parse from iterator, return Err on error.
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Source§impl ProgressBars for ProgressOptions
impl ProgressBars for ProgressOptions
Source§type P = RusticProgress
type P = RusticProgress
The actual type which is able to show the progress
Source§fn progress_spinner(
&self,
prefix: impl Into<Cow<'static, str>>,
) -> RusticProgress
fn progress_spinner( &self, prefix: impl Into<Cow<'static, str>>, ) -> RusticProgress
Start a new progress spinner. Note that this progress doesn’t get a length and is not advanced, only finished. Read more
Source§fn progress_counter(
&self,
prefix: impl Into<Cow<'static, str>>,
) -> RusticProgress
fn progress_counter( &self, prefix: impl Into<Cow<'static, str>>, ) -> RusticProgress
Start a new progress which counts something Read more
Start a new progress, which is hidden
Source§fn progress_bytes(&self, prefix: impl Into<Cow<'static, str>>) -> RusticProgress
fn progress_bytes(&self, prefix: impl Into<Cow<'static, str>>) -> RusticProgress
Start a new progress which counts bytes Read more
Source§impl Serialize for ProgressOptions
impl Serialize for ProgressOptions
impl Copy for ProgressOptions
Auto Trait Implementations§
impl Freeze for ProgressOptions
impl RefUnwindSafe for ProgressOptions
impl Send for ProgressOptions
impl Sync for ProgressOptions
impl Unpin for ProgressOptions
impl UnwindSafe for ProgressOptions
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<C> Config for C
impl<C> Config for C
Source§fn load_toml(toml_string: impl AsRef<str>) -> Result<C, FrameworkError>
fn load_toml(toml_string: impl AsRef<str>) -> Result<C, FrameworkError>
Load the configuration from the given TOML string.
Source§fn load_toml_file(path: impl AsRef<CanonicalPath>) -> Result<C, FrameworkError>
fn load_toml_file(path: impl AsRef<CanonicalPath>) -> Result<C, FrameworkError>
Load the global configuration from the TOML file at the given path.
If an error occurs reading or parsing the file, print it out and exit.
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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 moreSource§impl<T> MergeFrom for Twhere
T: Merge,
impl<T> MergeFrom for Twhere
T: Merge,
Source§fn merge_from(self, other: Self) -> Selfwhere
Self: Sized,
fn merge_from(self, other: Self) -> Selfwhere
Self: Sized,
Merges two instances of a type into a new instance. Read more