enum PendingMembershipError {
MissingUpgradeToken,
MalformedUpgradeToken,
MalformedAccountRecoveryKey,
AccountRecoveryKeyDecapsulationFailed,
OrganizationPrivateKeyNotInContext,
UpgradeTokenUnwrapFailed,
MalformedUserKeyId,
UserKeyIdMismatch,
AccountRecoveryMakeFailed(AccountRecoveryMakeError),
}Expand description
Errors that stop one pending membership from being upgraded. They do not fail the organization’s upgrade: the membership is either unenrolled from account recovery or left pending.
Variants§
MissingUpgradeToken
The server could not parse the membership’s stored upgrade token, so the token holds no usable V2 user key.
MalformedUpgradeToken
The upgrade token in the response is missing a wrapped user key, or a wrapped user key could not be parsed.
MalformedAccountRecoveryKey
The account recovery key is in no format this client knows, for example because it is corrupted.
AccountRecoveryKeyDecapsulationFailed
The account recovery key was encapsulated to a different organization key pair, or is corrupted.
OrganizationPrivateKeyNotInContext
The organization’s private key is not in the key store context.
UpgradeTokenUnwrapFailed
The upgrade token was created with a V1 user key other than the one in the account recovery key, holds a wrapped user key in no known format, or was tampered with.
MalformedUserKeyId
The server reported a key id in no format this client knows.
UserKeyIdMismatch
The V2 user key in the upgrade token has a key id other than the one the server reported.
AccountRecoveryMakeFailed(AccountRecoveryMakeError)
The V2 user key could not be made into an account recovery key.
Trait Implementations§
Source§impl Debug for PendingMembershipError
impl Debug for PendingMembershipError
Source§impl Display for PendingMembershipError
impl Display for PendingMembershipError
Source§impl Error for PendingMembershipError
impl Error for PendingMembershipError
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()
Auto Trait Implementations§
impl Freeze for PendingMembershipError
impl RefUnwindSafe for PendingMembershipError
impl Send for PendingMembershipError
impl Sync for PendingMembershipError
impl Unpin for PendingMembershipError
impl UnsafeUnpin for PendingMembershipError
impl UnwindSafe for PendingMembershipError
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§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> ⓘ
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