pub struct Progress { /* private fields */ }Implementations§
Source§impl Progress
impl Progress
Sourcepub fn new(enabled: bool, total_bytes: u64, verbose: bool) -> Self
pub fn new(enabled: bool, total_bytes: u64, verbose: bool) -> Self
create new byte-based progress reporter, only shows progress if enabled
Sourcepub fn new_items(enabled: bool, total_items: u64, verbose: bool) -> Self
pub fn new_items(enabled: bool, total_items: u64, verbose: bool) -> Self
create new item-count progress reporter, only shows progress if enabled
Sourcepub fn set_position(&self, pos: u64)
pub fn set_position(&self, pos: u64)
set the current position
Sourcepub fn set_length(&self, len: u64)
pub fn set_length(&self, len: u64)
set the total length
Sourcepub fn finish_with_message(&self, msg: &str)
pub fn finish_with_message(&self, msg: &str)
finish progress with a message
Sourcepub fn is_verbose(&self) -> bool
pub fn is_verbose(&self) -> bool
check if verbose logging is enabled
Auto Trait Implementations§
impl Freeze for Progress
impl RefUnwindSafe for Progress
impl Send for Progress
impl Sync for Progress
impl Unpin for Progress
impl UnsafeUnpin for Progress
impl UnwindSafe for Progress
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