pub struct Progress {
pub chunks: usize,
pub bytes: usize,
pub lines: usize,
pub print_count: usize,
/* private fields */
}
Fields§
§chunks: usize
§bytes: usize
§lines: usize
§print_count: usize
Implementations§
Source§impl Progress
impl Progress
pub fn new() -> Self
pub fn add_chunks(&mut self, n: usize)
pub fn add_bytes(&mut self, n: usize)
pub fn add_lines(&mut self, n: usize)
pub fn info(&self) -> String
pub fn elapsed_time_as_string(&self) -> String
pub fn print(&mut self)
pub fn clear(&mut self)
pub fn print_elapsed_time(&mut self)
Auto Trait Implementations§
impl Freeze for Progress
impl RefUnwindSafe for Progress
impl Send for Progress
impl Sync for Progress
impl Unpin 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
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 more