pub enum UploadPhase {
Uploading,
Stored,
Waiting(UploadWait),
Failed(PendingRecord),
}Expand description
What a queued upload is doing, bound and trailing alike: the sync state names bound files only, so what a trailing file waits for, and its failure, are shown here (§17.9, §19.1). Whether it is sending is persisted nowhere: a reopened store starts with every file waiting.
Variants§
Uploading
An attempt is sending it now, in one request or in parts.
Stored
Storage holds its bytes; it waits for the rest of its move (§17.3).
Waiting(UploadWait)
Not being sent, for this reason.
Failed(PendingRecord)
Its pending record names a failure only a person clears, or one that never clears: a file whose original is missing or changed, coven’s copy failing its check, stored bytes lost or refused, a full account.
Implementations§
Trait Implementations§
Source§impl Clone for UploadPhase
impl Clone for UploadPhase
Source§impl Debug for UploadPhase
impl Debug for UploadPhase
Source§impl PartialEq for UploadPhase
impl PartialEq for UploadPhase
impl StructuralPartialEq for UploadPhase
Auto Trait Implementations§
impl !RefUnwindSafe for UploadPhase
impl !UnwindSafe for UploadPhase
impl Freeze for UploadPhase
impl Send for UploadPhase
impl Sync for UploadPhase
impl Unpin for UploadPhase
impl UnsafeUnpin for UploadPhase
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
Mutably borrows from an owned value. Read more
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<T> ErasedDestructor for Twhere
T: 'static,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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> ⓘ
Converts
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> ⓘ
Converts
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 moreCreates a shared type from an unshared type.