pub enum StorageSetupError {
Show 13 variants
Check(StorageCheckError),
LocationChangeUnsupported,
Storage(StorageError),
OAuth(OAuthError),
SecureStorage(KeyError),
Removed,
StoreOwner,
UpdateRequired(RequiredUpdate),
Cancelled,
SetupRunning,
Internal(Box<dyn Error + Send + Sync>),
Shutdown(Shutdown),
Bug(Bug),
}Expand description
A failed setup commits no local storage settings or credentials.
Variants§
Check(StorageCheckError)
A provider or S3 settings check refused the location.
LocationChangeUnsupported
Reconnecting cannot move an established store to another location.
Storage(StorageError)
A classified storage failure.
OAuth(OAuthError)
Sign-in failed or was cancelled before setup could connect.
SecureStorage(KeyError)
The facade could not commit to key custody.
Removed
This device or its member was removed from the store (§14.1).
StoreOwner
This member’s account holds the store, and setup signed in with another account. Their access stays on the account that holds it: the person signs in with that one (§10.1, §20.9).
UpdateRequired(RequiredUpdate)
The store needs a newer app schema or coven format (§18).
Cancelled
The app cancelled setup before its point of no return, and what it had written was undone (§11.6).
SetupRunning
A setup on this device is past its point of no return and still finishing, so another can’t start; starting sync finishes it (§11.6).
Internal(Box<dyn Error + Send + Sync>)
A local setup step failed, retaining its cause.
Shutdown(Shutdown)
Setup’s runtime is shutting down and dropped it partway, so how much of it was saved is unknown (E15).
Bug(Bug)
Setup panicked: a bug, which the caller reports (E15). How much of it was saved is unknown.
Trait Implementations§
Source§impl CarriesBug for StorageSetupError
impl CarriesBug for StorageSetupError
Source§impl Debug for StorageSetupError
impl Debug for StorageSetupError
Source§impl Display for StorageSetupError
impl Display for StorageSetupError
Source§impl Error for StorageSetupError
impl Error for StorageSetupError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<Bug> for StorageSetupError
impl From<Bug> for StorageSetupError
Source§impl From<KeyError> for StorageSetupError
impl From<KeyError> for StorageSetupError
Source§impl From<OAuthError> for StorageSetupError
impl From<OAuthError> for StorageSetupError
Source§fn from(source: OAuthError) -> Self
fn from(source: OAuthError) -> Self
Source§impl From<Shutdown> for StorageSetupError
impl From<Shutdown> for StorageSetupError
Source§impl From<StorageCheckError> for StorageSetupError
A storage failure keeps its one spelling, Storage; the other refusals
are checks.
impl From<StorageCheckError> for StorageSetupError
A storage failure keeps its one spelling, Storage; the other refusals
are checks.
Source§fn from(error: StorageCheckError) -> Self
fn from(error: StorageCheckError) -> Self
Source§impl From<StorageError> for StorageSetupError
impl From<StorageError> for StorageSetupError
Source§fn from(error: StorageError) -> Self
fn from(error: StorageError) -> Self
Source§impl From<TaskFailed> for StorageSetupError
impl From<TaskFailed> for StorageSetupError
Source§fn from(failed: TaskFailed) -> Self
fn from(failed: TaskFailed) -> Self
Auto Trait Implementations§
impl Freeze for StorageSetupError
impl !RefUnwindSafe for StorageSetupError
impl Send for StorageSetupError
impl Sync for StorageSetupError
impl Unpin for StorageSetupError
impl UnsafeUnpin for StorageSetupError
impl !UnwindSafe for StorageSetupError
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<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