pub struct UploadPhaseFacts<P> {
pub sync: RetrySync,
pub last_pass: Option<Vec<u8>>,
pub holds: TransferHolds,
pub sending: bool,
pub stored: bool,
pub bound: bool,
pub retry_at: Option<SystemTime>,
pub own: Option<(i64, P)>,
pub moving: Option<(i64, P)>,
pub original: Option<PathBuf>,
}Expand description
What one upload’s phase is computed from (§17.9, api.md E4), as
coven_upload_phases passes it to _coven_upload_phase for each upload
in this device’s queue, in one committed snapshot: what holds every
transfer, what holds trailing uploads, and the upload’s own facts.
Fields§
§sync: RetrySyncWhether a started connection will plan, and the cooldown holding every request.
last_pass: Option<Vec<u8>>How the last pass ended, as sync encodes it; none until a pass ends on this device.
holds: TransferHoldsWhat holds trailing uploads.
sending: boolThis process is sending it now.
stored: boolStorage holds its bytes; it waits for the rest of its move.
bound: boolA bound reference’s, which the pause, a metered network and a self-replacement don’t hold (§17.4).
retry_at: Option<SystemTime>Its last attempt failed, and it retries then (§6.7).
own: Option<(i64, P)>The record about its stored bytes, with its position in
coven_pending, if it has one.
moving: Option<(i64, P)>The record about its move, with its position, if it has one: it names an original, which may be this upload’s or a sibling’s.
original: Option<PathBuf>The path of the user’s original it uploads, if it uploads one.