#[non_exhaustive]pub struct PushProgressSnapshot {
pub phase: PushPhase,
pub objects_total: u64,
pub objects_needed: u64,
pub objects_sent: u64,
pub bytes_sent: u64,
pub payload_bytes: u64,
pub content_bytes: u64,
pub bytes_total: u64,
}Expand description
The counters of a PushProgress at one point in time.
Code outside this crate gets a snapshot from PushProgress::snapshot,
from the hook, or from Default, and reads its fields by name.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.phase: PushPhaseThe step that the push is in.
objects_total: u64The count of PushStats::objects_total so far.
objects_needed: u64The count of PushStats::objects_needed so far.
objects_sent: u64The count of PushStats::objects_sent so far.
bytes_sent: u64The count of PushStats::bytes_sent so far.
payload_bytes: u64The count of PushStats::payload_bytes so far.
content_bytes: u64The content bytes that the session read so far.
These are the bytes that the session read from the reader that its
source gave for each file object, before the compressor of the
session. A stored .filez that the session sends as it is counts
with its stored bytes. A symlink, a metadata object, and detached
metadata count no byte.
bytes_total: u64The content bytes of the file objects that the session sends.
The source tells this total before the first object, so
content_bytes ends at this total. If the source does not tell it,
or the query fails, the total stays 0. See
ObjectSource::content_size.
Trait Implementations§
Source§impl Clone for PushProgressSnapshot
impl Clone for PushProgressSnapshot
impl Copy for PushProgressSnapshot
Source§impl Debug for PushProgressSnapshot
impl Debug for PushProgressSnapshot
Source§impl Default for PushProgressSnapshot
impl Default for PushProgressSnapshot
impl Eq for PushProgressSnapshot
Source§impl PartialEq for PushProgressSnapshot
impl PartialEq for PushProgressSnapshot
impl StructuralPartialEq for PushProgressSnapshot
Auto Trait Implementations§
impl Forget for PushProgressSnapshot
impl Freeze for PushProgressSnapshot
impl Move for PushProgressSnapshot
impl RefUnwindSafe for PushProgressSnapshot
impl Send for PushProgressSnapshot
impl Sync for PushProgressSnapshot
impl Unpin for PushProgressSnapshot
impl UnsafeUnpin for PushProgressSnapshot
impl UnwindSafe for PushProgressSnapshot
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.