pub struct Transfer {
pub bytes_in: u64,
pub bytes_out: u64,
pub pushed: bool,
pub fetched: bool,
pub lfs_bytes_in: u64,
pub lfs_bytes_out: u64,
pub principal: String,
}Expand description
What one finished transfer moved. Built by the counting point, applied once.
One struct rather than eight record_* methods, because a transfer is ONE
event and its numbers must land on one day together: eight calls could
straddle midnight and split a single push across two rows.
Fields§
§bytes_in: u64Wire bytes accepted.
bytes_out: u64Wire bytes served.
pushed: boolA receive-pack session that finished.
fetched: boolAn upload-pack session that was asked for objects — never the bare advertisement.
lfs_bytes_in: u64LFS object bytes received, as the LFS session counted them.
lfs_bytes_out: u64LFS object bytes sent.
principal: StringThe principal, by the fingerprint the auth table knows. Empty for a transfer with no identity, which is counted in the bytes and in nobody’s name.
Implementations§
Trait Implementations§
impl Eq for Transfer
impl StructuralPartialEq for Transfer
Auto Trait Implementations§
impl Freeze for Transfer
impl RefUnwindSafe for Transfer
impl Send for Transfer
impl Sync for Transfer
impl Unpin for Transfer
impl UnsafeUnpin for Transfer
impl UnwindSafe for Transfer
Blanket Implementations§
impl<T> Allocation for T
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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