pub enum SyncWait {
NotSyncing,
CoolingDown {
until: SystemTime,
},
KeyCopy {
audience: Audience,
key: KeyId,
holders: Vec<KeyHolder>,
},
Snapshot {
audience: Audience,
},
Retrying {
at: SystemTime,
},
}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
bound file waiting in the upload queue, what holds that file, then a
write’s own key (§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.
KeyCopy
A slot, or the first write in the send queue, needs a key this device holds no copy of; another device of a member holding it sends one (§12.1). A slot waiting on it holds everything: nothing goes out or comes in until the key arrives (§5.4).
Fields
holders: Vec<KeyHolder>The members that hold the key, as the history this device applied names them: their devices to open, or, for a holder that no longer reads the audience, a member of the audience to add it back (§12.1). Empty only when the record was made without the history; a key no member holds is never sent, and shows Failed.
Snapshot
A slot holds a raise or reset of audience, and no snapshot announced
after it is named yet; another device takes one (§16.5). Nothing goes
out or comes in until then.
Retrying
A failure that clears by itself and names no state of its own, on the pass, a slot’s application, coven’s own operation or a bound file’s attempt, has failed, and the next try is then, or at the person’s retry (§6.7); the pending list says why.
Fields
at: SystemTimeWhen its backoff ends, by the store’s clock.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SyncWait
impl<'de> Deserialize<'de> for SyncWait
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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
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> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§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