pub enum SyncWait {
NotSyncing,
CoolingDown {
until: SystemTime,
},
Blocked,
Paused,
Metered,
Retrying {
at: SystemTime,
},
Queued,
}Expand description
What waiting to sync waits for, as WaitingToSync names it: what holds
every transfer, the pass’s and each file’s alike, first; then, for a
file waiting in the upload queue, what holds that file (§19.1).
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.
Blocked
A slot can’t apply yet; nothing goes out or comes in 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.
Retrying
Its last attempt failed, and it retries then, or at the person’s
retry (§6.7); coven_uploads.pending says why.
Fields
at: SystemTimeWhen its backoff ends, by the store’s clock.
Queued
Its turn hasn’t come: a file’s, a write’s, or the next pass’s once a cooldown that held the last one is over.
Trait Implementations§
impl Copy for SyncWait
impl Eq for SyncWait
impl StructuralPartialEq for SyncWait
Auto Trait Implementations§
impl Freeze for SyncWait
impl RefUnwindSafe for SyncWait
impl Send for SyncWait
impl Sync for SyncWait
impl Unpin for SyncWait
impl UnsafeUnpin for SyncWait
impl UnwindSafe for SyncWait
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.§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