pub struct Aggregator { /* private fields */ }Expand description
Accumulates per-layer byte counts across pull lines into overall progress.
Implementations§
Source§impl Aggregator
impl Aggregator
Sourcepub fn fold(&mut self, line: &str) -> Result<Outcome, InstallError>
pub fn fold(&mut self, line: &str) -> Result<Outcome, InstallError>
Fold one ndjson line, updating internal totals. Returns what to emit, or a
InstallError::TransferFailed if the line carried an error.
Trait Implementations§
Source§impl Debug for Aggregator
impl Debug for Aggregator
Auto Trait Implementations§
impl Freeze for Aggregator
impl RefUnwindSafe for Aggregator
impl Send for Aggregator
impl Sync for Aggregator
impl Unpin for Aggregator
impl UnsafeUnpin for Aggregator
impl UnwindSafe for Aggregator
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