pub enum UploadWait {
NotSyncing,
CoolingDown {
until: SystemTime,
},
Sync,
Paused,
Metered,
KeysChanging,
Retrying {
at: SystemTime,
},
Queued,
}Expand description
What a queued upload waits for, the first that holds (§17.9).
Variants§
NotSyncing
Sync isn’t running (start_sync, stop_sync).
CoolingDown
The provider asked every request to wait until then (§6.7).
Fields
until: SystemTimeWhen the cooldown ends, by the store’s clock.
Sync
A slot can’t apply yet, so no transfer goes out until it does (§5.4).
Paused
The app paused uploads, and the file’s reference trails
(set_uploads_paused, §17.4).
Metered
The network is metered, or may be, since the platform stopped
answering after opening (E5); the app moves files only on unmetered
networks (set_unmetered_only, §17.9), and the file’s reference
trails.
KeysChanging
A self-replacement of this member’s keys pauses writes, and the file’s reference trails (§12.3).
Retrying
Its last attempt failed, and it retries then, or at the person’s retry (§6.7).
Fields
at: SystemTimeWhen its backoff ends, by the store’s clock.
Queued
Its turn hasn’t come.
Implementations§
Trait Implementations§
Source§impl Clone for UploadWait
impl Clone for UploadWait
impl Copy for UploadWait
Source§impl Debug for UploadWait
impl Debug for UploadWait
impl Eq for UploadWait
Source§impl PartialEq for UploadWait
impl PartialEq for UploadWait
impl StructuralPartialEq for UploadWait
Auto Trait Implementations§
impl Freeze for UploadWait
impl RefUnwindSafe for UploadWait
impl Send for UploadWait
impl Sync for UploadWait
impl Unpin for UploadWait
impl UnsafeUnpin for UploadWait
impl UnwindSafe for UploadWait
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> 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.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> ⓘ
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