pub struct ProgressReporter { /* private fields */ }Expand description
进度报告器
Implementations§
Source§impl ProgressReporter
impl ProgressReporter
Sourcepub fn new(total_size: u64) -> Self
pub fn new(total_size: u64) -> Self
创建新的进度报告器
§Panics
Panics if the progress bar template is invalid (which should not happen with the predefined template)
Sourcepub fn set_length(&self, length: u64)
pub fn set_length(&self, length: u64)
设置长度
Sourcepub fn set_message(&self, message: &str)
pub fn set_message(&self, message: &str)
设置消息
Trait Implementations§
Source§impl Clone for ProgressReporter
impl Clone for ProgressReporter
Source§fn clone(&self) -> ProgressReporter
fn clone(&self) -> ProgressReporter
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 moreAuto Trait Implementations§
impl Freeze for ProgressReporter
impl RefUnwindSafe for ProgressReporter
impl Send for ProgressReporter
impl Sync for ProgressReporter
impl Unpin for ProgressReporter
impl UnwindSafe for ProgressReporter
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