pub enum ReinitUserCryptoError {
NotUnlocked,
InvalidAccountCryptographicState,
LocalMigrationFailed,
InvalidUpgradeToken,
CryptoInitialization,
StateBridgeNotRegistered,
}Expand description
Errors that can occur when re-initializing user cryptography state.
Variants§
NotUnlocked
The SDK is not in an unlocked state, so it cannot re-initialize user crypto.
InvalidAccountCryptographicState
The provided account cryptographic state is not V2. Re-initialization is only supported for upgrading to V2 encryption.
LocalMigrationFailed
The local migrations (pin key and local user data key) that runs as part of the V1->V2 upgrade failed, likely due to missing state or keys that should be present during the upgrade process. Clients should deconstruct the SDK and initialize a fresh instance to recover.
InvalidUpgradeToken
The provided upgrade token was invalid, such as not decrypting properly with the active user key, or containing unexpected data.
CryptoInitialization
An error occurred during the cryptographic operations to re-initialize user crypto.
StateBridgeNotRegistered
The SDK does not have a state bridge registered, which is required to perform V1->V2 local data migrations.
Trait Implementations§
Source§impl<UT> ConvertError<UT> for ReinitUserCryptoError
impl<UT> ConvertError<UT> for ReinitUserCryptoError
fn try_convert_unexpected_callback_error( e: UnexpectedUniFFICallbackError, ) -> Result<Self>
Source§impl Debug for ReinitUserCryptoError
impl Debug for ReinitUserCryptoError
Source§impl Display for ReinitUserCryptoError
impl Display for ReinitUserCryptoError
Source§impl Error for ReinitUserCryptoError
impl Error for ReinitUserCryptoError
1.30.0 · 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
use the Display impl or to_string()
Source§impl FlatError for ReinitUserCryptoError
impl FlatError for ReinitUserCryptoError
fn error_variant(&self) -> &'static str
Source§impl From<ReinitUserCryptoError> for JsValue
impl From<ReinitUserCryptoError> for JsValue
Source§fn from(error: ReinitUserCryptoError) -> Self
fn from(error: ReinitUserCryptoError) -> Self
Source§impl<UT> Lift<UT> for ReinitUserCryptoError
impl<UT> Lift<UT> for ReinitUserCryptoError
Source§impl<UT> Lower<UT> for ReinitUserCryptoError
impl<UT> Lower<UT> for ReinitUserCryptoError
Source§impl<UT> LowerError<UT> for ReinitUserCryptoError
impl<UT> LowerError<UT> for ReinitUserCryptoError
Source§fn lower_error(obj: Self) -> RustBuffer
fn lower_error(obj: Self) -> RustBuffer
Source§impl<UT> TypeId<UT> for ReinitUserCryptoError
impl<UT> TypeId<UT> for ReinitUserCryptoError
const TYPE_ID_META: MetadataBuffer
Auto Trait Implementations§
impl Freeze for ReinitUserCryptoError
impl RefUnwindSafe for ReinitUserCryptoError
impl Send for ReinitUserCryptoError
impl Sync for ReinitUserCryptoError
impl Unpin for ReinitUserCryptoError
impl UnsafeUnpin for ReinitUserCryptoError
impl UnwindSafe for ReinitUserCryptoError
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
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> CompatExt for T
impl<T> CompatExt for T
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
§unsafe fn consume_handle(handle: Handle) -> Arc<T>
unsafe fn consume_handle(handle: Handle) -> Arc<T>
Arc<> Read more§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