pub enum Phase {
Idle,
Hashing,
Transfer,
}Expand description
The coarse phase a Meter is currently recording.
Maps to/from a u8 for lock-free storage in an AtomicU8. The default is
Phase::Idle so a freshly-constructed MeterSnapshot (and an untouched
meter) reports an idle phase.
Variants§
Idle
No work is being recorded yet.
Hashing
Files are being read and hashed (the walk’s content pass).
Transfer
Objects are being transferred to/from a store.
Trait Implementations§
impl Copy for Phase
impl Eq for Phase
impl StructuralPartialEq for Phase
Auto Trait Implementations§
impl Freeze for Phase
impl RefUnwindSafe for Phase
impl Send for Phase
impl Sync for Phase
impl Unpin for Phase
impl UnsafeUnpin for Phase
impl UnwindSafe for Phase
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