pub struct QueuedUpload {
pub blob: RowBlobRef,
pub root_table: String,
pub root_id: String,
pub root_label: String,
pub retain_pinned: bool,
pub phase: QueuedUploadPhase,
pub provider_bytes_total: Option<u64>,
pub attempt_count: u64,
pub last_failure: Option<OutboxFailure>,
pub created_at: String,
pub last_attempt_at: Option<String>,
}Expand description
One upload the durable cloud queue is holding, as a host renders it.
This is a projection of the queue row, not the drain’s working entry: it
carries what a person needs to see — which blob, which row it belongs to,
whether it is retried and why — and none of the transfer bookkeeping the
drain needs. attempt_count is 0 and last_error is None until a
transfer has actually been tried and failed, so a freshly queued upload is
distinguishable from a retrying one.
Fields§
§blob: RowBlobRefThe exact blob-bearing row version held by the durable queue. This is the same identity upload lifecycle callbacks report.
root_table: StringThe gated root whose make-remote enqueued this upload. Every upload for one root shares this pair, and the root is what a host groups by.
root_id: String§root_label: StringWhat the host called this root when it queued the work, snapshotted here so the queue can name its own entries. The root row is exactly what a cancelled or deleted root no longer has, and an entry that cannot say what it is is an entry a host cannot render or a person cancel.
retain_pinned: boolWhether the transition asked for the plaintext to stay cached locally once the upload lands.
phase: QueuedUploadPhaseThe durable handoff this exact upload has reached. In-memory transfer activity refines this into Preparing or Uploading; after a restart this is the authoritative lower bound the host renders immediately.
provider_bytes_total: Option<u64>Exact bytes the cloud provider receives once preparation has produced the stored object. Pending preparation has no provider denominator yet.
attempt_count: u64Failed transfer attempts so far; 0 for an upload never yet tried.
last_failure: Option<OutboxFailure>Why the last attempt failed, if one has.
created_at: StringWhen the upload was enqueued.
last_attempt_at: Option<String>When it was last attempted, if it has been.
Trait Implementations§
Source§impl Clone for QueuedUpload
impl Clone for QueuedUpload
Source§fn clone(&self) -> QueuedUpload
fn clone(&self) -> QueuedUpload
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for QueuedUpload
impl Debug for QueuedUpload
Source§impl PartialEq for QueuedUpload
impl PartialEq for QueuedUpload
impl Eq for QueuedUpload
impl StructuralPartialEq for QueuedUpload
Auto Trait Implementations§
impl Freeze for QueuedUpload
impl RefUnwindSafe for QueuedUpload
impl Send for QueuedUpload
impl Sync for QueuedUpload
impl Unpin for QueuedUpload
impl UnsafeUnpin for QueuedUpload
impl UnwindSafe for QueuedUpload
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.