pub enum StorageSetupStep {
CheckingLocation,
DetectingSettings,
PreparingZone,
ReadingAccount,
Connecting,
CreatingStore,
Loading(LoadStep),
RecordingAccess,
}Expand description
A step of setting up storage, in the order they run. Which steps run
depends on the provider and on whether setup creates the store. A step
other than Loading is one unit, done when it ends. Setup can be
cancelled until CreatingStore or RecordingAccess begins, its point of
no return (§11.6).
Variants§
CheckingLocation
Creating the store in a location it needs to itself (a Dropbox shared folder, a OneDrive folder, or an S3 bucket): listing the location’s root to check it holds nothing but this store (§20.3).
DetectingSettings
S3: probing the service with fresh objects for the settings the location needs, and checking them against what it does (§20.8).
PreparingZone
iCloud, creating the store: reading the account and saving the store’s zone.
ReadingAccount
Dropbox or OneDrive: reading the signed-in account’s name.
Connecting
Connecting, reading a Dropbox or OneDrive folder’s name and web address (§20.2), then checking the provider with a fresh sealed object it must create once, read back and delete.
CreatingStore
Creating the store, past the point of no return: claiming the location where it holds one store (§20.3), then slot 1, which publishes it.
Loading(LoadStep)
Reconnecting: opening this member’s store keys and loading what other devices published, each of loading’s steps with its count (§13.4).
RecordingAccess
Reconnecting with changed provider access, past the point of no
return: publishing it as Set access.
Trait Implementations§
Source§impl Clone for StorageSetupStep
impl Clone for StorageSetupStep
Source§fn clone(&self) -> StorageSetupStep
fn clone(&self) -> StorageSetupStep
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for StorageSetupStep
impl Debug for StorageSetupStep
Source§impl PartialEq for StorageSetupStep
impl PartialEq for StorageSetupStep
impl Eq for StorageSetupStep
impl StructuralPartialEq for StorageSetupStep
Auto Trait Implementations§
impl Freeze for StorageSetupStep
impl RefUnwindSafe for StorageSetupStep
impl Send for StorageSetupStep
impl Sync for StorageSetupStep
impl Unpin for StorageSetupStep
impl UnsafeUnpin for StorageSetupStep
impl UnwindSafe for StorageSetupStep
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