pub struct PushStats {
pub objects_total: u64,
pub objects_needed: u64,
pub objects_sent: u64,
pub bytes_sent: u64,
pub payload_bytes: u64,
pub elapsed: Duration,
}Expand description
The statistics of one push session.
Fields§
§objects_total: u64The number of objects that the client offered in Have.
objects_needed: u64The number of objects that the server asked for in HaveReply.
objects_sent: u64The number of objects that the session sent in the object stream.
A detached metadata object does not count.
bytes_sent: u64The number of bytes that the session gave to its transport.
The count holds the frames, the chunk lengths, and the object bytes. On a stream transport, a byte counts when the session writes it to the stream.
Over HTTP, the request bodies count and the HTTP heads do not:
- A whole body, as for
Hello,Have, andCommit, counts when the client gives its request to a connection. It counts if the request gets a response, and also if the request fails after the hand-over. - An object stream counts each byte that it writes into its request body after the hand-over. At the hand-over, it counts the bytes that it wrote before.
- A request that the client never gives to a connection counts no byte.
payload_bytes: u64The object bytes that the session sent, without the chunk lengths.
The bytes are in the encoding that the session sent them in. Detached metadata objects count.
elapsed: DurationThe time that the session ran.
The clock starts when the session opens: after the ssh client starts, or before the first HTTP request. The scan and the hash pass of a tree push do not count.
Trait Implementations§
impl Copy for PushStats
impl Eq for PushStats
impl StructuralPartialEq for PushStats
Auto Trait Implementations§
impl Freeze for PushStats
impl RefUnwindSafe for PushStats
impl Send for PushStats
impl Sync for PushStats
impl Unpin for PushStats
impl UnsafeUnpin for PushStats
impl UnwindSafe for PushStats
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.