pub enum UploadTier {
Index,
Preview,
Original,
}Expand description
The upload tier ladder, mirroring the download ladder. Tiers map directly onto
existing blob roles — no new blob kind exists for staging. The derived
Ord is the ladder order (Index < Preview < Original), so a scheduler emits
sessions strictly T0 → T1 → T2 by sorting.
Variants§
Index
T0: signed manifest + metadata blob (embedded LQIP) — the index that makes
the asset visible (awaiting-original) on other devices. A few KB per
asset; escapes on any usable connection.
Preview
T1: thumbnail + preview derivative blobs. Needs a non-metered link (small-reconciliation rule).
Original
T2: the original blob; its finalization flips original_held on the sync
feed and unlocks every release path (verify-before-destroy). Needs unmetered
Wi-Fi (large-reconciliation rule) or explicit force-sync.
Implementations§
Source§impl UploadTier
impl UploadTier
Sourcepub const LADDER: [UploadTier; 3]
pub const LADDER: [UploadTier; 3]
The tiers in strict ladder order (T0 → T1 → T2) — the ordering input a staged scheduler iterates.
Trait Implementations§
Source§impl Clone for UploadTier
impl Clone for UploadTier
Source§fn clone(&self) -> UploadTier
fn clone(&self) -> UploadTier
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for UploadTier
Source§impl Debug for UploadTier
impl Debug for UploadTier
impl Eq for UploadTier
Source§impl Hash for UploadTier
impl Hash for UploadTier
Source§impl Ord for UploadTier
impl Ord for UploadTier
Source§fn cmp(&self, other: &UploadTier) -> Ordering
fn cmp(&self, other: &UploadTier) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for UploadTier
impl PartialEq for UploadTier
Source§fn eq(&self, other: &UploadTier) -> bool
fn eq(&self, other: &UploadTier) -> bool
self and other values to be equal, and is used by ==.Source§impl PartialOrd for UploadTier
impl PartialOrd for UploadTier
impl StructuralPartialEq for UploadTier
Auto Trait Implementations§
impl Freeze for UploadTier
impl RefUnwindSafe for UploadTier
impl Send for UploadTier
impl Sync for UploadTier
impl Unpin for UploadTier
impl UnsafeUnpin for UploadTier
impl UnwindSafe for UploadTier
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§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.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more