pub struct ProgressConfig {
pub enabled: bool,
pub force_enabled: bool,
pub supports_ansi: bool,
pub terminal_width: usize,
pub is_interactive: bool,
pub min_files_threshold: usize,
pub min_size_threshold: u64,
pub min_duration_threshold: Duration,
}Fields§
§enabled: bool§force_enabled: bool§supports_ansi: bool§terminal_width: usize§is_interactive: bool§min_files_threshold: usize§min_size_threshold: u64§min_duration_threshold: DurationImplementations§
Source§impl ProgressConfig
impl ProgressConfig
pub fn auto_detect() -> Self
pub fn should_show_progress( &self, file_count: usize, total_size: u64, force_progress: bool, ) -> bool
Trait Implementations§
Source§impl Clone for ProgressConfig
impl Clone for ProgressConfig
Source§fn clone(&self) -> ProgressConfig
fn clone(&self) -> ProgressConfig
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 Debug for ProgressConfig
impl Debug for ProgressConfig
Auto Trait Implementations§
impl Freeze for ProgressConfig
impl RefUnwindSafe for ProgressConfig
impl Send for ProgressConfig
impl Sync for ProgressConfig
impl Unpin for ProgressConfig
impl UnwindSafe for ProgressConfig
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