pub struct Progress { /* private fields */ }Implementations§
Source§impl Progress
impl Progress
Sourcepub fn new(total: u64, options: ProgressOptions) -> Self
pub fn new(total: u64, options: ProgressOptions) -> Self
Create a determinate progress bar.
Sourcepub fn spinner(options: ProgressOptions) -> Self
pub fn spinner(options: ProgressOptions) -> Self
Create a spinner progress indicator.
pub fn set_position(&self, pos: u64)
pub fn inc(&self, delta: u64)
pub fn tick(&self)
pub fn set_message(&self, message: impl Into<String>)
pub fn finish_with_message(&self, message: impl Into<String>)
Sourcepub fn finish_and_clear(&self)
pub fn finish_and_clear(&self)
Finish and clear the progress output.
pub fn suspend<F: FnOnce() -> R, R>(&self, f: F) -> R
Trait Implementations§
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