pub struct ScanProgress {
pub files: AtomicUsize,
pub dirs: AtomicUsize,
pub bytes: AtomicU64,
pub errors: AtomicUsize,
pub done: AtomicBool,
pub phase: AtomicU8,
pub stage_current: AtomicUsize,
pub stage_total: AtomicUsize,
}Fields§
§files: AtomicUsize§dirs: AtomicUsize§bytes: AtomicU64§errors: AtomicUsize§done: AtomicBool§phase: AtomicU8§stage_current: AtomicUsize§stage_total: AtomicUsizeImplementations§
Source§impl ScanProgress
impl ScanProgress
pub fn new() -> Self
pub fn get_files(&self) -> usize
pub fn get_dirs(&self) -> usize
pub fn get_bytes(&self) -> u64
pub fn get_errors(&self) -> usize
pub fn is_done(&self) -> bool
pub fn get_phase(&self) -> u8
pub fn get_stage_progress(&self) -> (usize, usize)
pub fn begin_stage(&self, phase: u8, total: usize)
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for ScanProgress
impl RefUnwindSafe for ScanProgress
impl Send for ScanProgress
impl Sync for ScanProgress
impl Unpin for ScanProgress
impl UnsafeUnpin for ScanProgress
impl UnwindSafe for ScanProgress
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