pub struct FileProgress<'a> { /* private fields */ }Expand description
A progress handle for a single file group.
Implementations§
Source§impl FileProgress<'_>
impl FileProgress<'_>
Sourcepub fn live_stats(&self) -> Option<Arc<LiveStats>>
pub fn live_stats(&self) -> Option<Arc<LiveStats>>
The live statistics sink for this file, if the table is being shown. Attached to the file’s BasicStats module so it can publish partial results as it works.
Sourcepub fn update(&self, reads: u64, percent: impl FnOnce() -> f64)
pub fn update(&self, reads: u64, percent: impl FnOnce() -> f64)
Report how far through the file the reader is. reads is the number of
records handed to the modules so far.
percent is a closure rather than a value because
SequenceFile::percent_complete costs a seek on the input file, and
there is often no bar for it to move — under --quiet, without a
terminal, or when many files share a single completion-counting bar.
Leaving that decision here keeps the reader from having to ask.
Trait Implementations§
Source§impl<'a> Clone for FileProgress<'a>
impl<'a> Clone for FileProgress<'a>
impl<'a> Copy for FileProgress<'a>
Auto Trait Implementations§
impl<'a> Freeze for FileProgress<'a>
impl<'a> RefUnwindSafe for FileProgress<'a>
impl<'a> Send for FileProgress<'a>
impl<'a> Sync for FileProgress<'a>
impl<'a> Unpin for FileProgress<'a>
impl<'a> UnsafeUnpin for FileProgress<'a>
impl<'a> UnwindSafe for FileProgress<'a>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.