pub struct ItemProgress {
pub id: UniqueID,
pub name: Arc<str>,
pub total_bytes: AtomicU64,
pub bytes_completed: AtomicU64,
pub transfer_bytes: AtomicU64,
pub transfer_bytes_completed: AtomicU64,
pub size_finalized: AtomicBool,
}Expand description
Per-item atomic progress counters. Created by GroupProgress::new_item().
Fields§
§id: UniqueID§name: Arc<str>§total_bytes: AtomicU64§bytes_completed: AtomicU64§transfer_bytes: AtomicU64§transfer_bytes_completed: AtomicU64§size_finalized: AtomicBoolImplementations§
Source§impl ItemProgress
impl ItemProgress
Sourcepub fn report(&self) -> ItemProgressReport
pub fn report(&self) -> ItemProgressReport
Snapshot of this item’s progress. Reads completions first (Acquire), then totals, which reduces transient skew in sampled values.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for ItemProgress
impl RefUnwindSafe for ItemProgress
impl Send for ItemProgress
impl Sync for ItemProgress
impl Unpin for ItemProgress
impl UnsafeUnpin for ItemProgress
impl UnwindSafe for ItemProgress
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> DropFlavorWrapper<T> for T
impl<T> DropFlavorWrapper<T> for T
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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