pub enum IdentityError {
Show 34 variants
CredentialSerialization(EncodeError),
Decode(DecodeError),
InstallationIdNotFound(String),
SignatureRequestBuilder(SignatureRequestError),
Signature(SignatureError),
BasicCredential(BasicCredentialError),
LegacyKeyReuse,
UninitializedIdentity,
InstallationKey(String),
MalformedLegacyKey(String),
LegacySignature(String),
Crypto(CryptoError),
LegacyKeyMismatch,
OpenMls(Error),
StorageError(StorageError),
OpenMlsStorageError(SqlKeyStoreError),
KeyPackageGenerationError(KeyPackageNewError),
KeyPackageVerificationError(KeyPackageVerificationError),
InboxIdMismatch {
id: InboxId,
stored: InboxId,
},
NoAssociatedInboxId(String),
RequiredIdentityNotFound,
NewIdentity(String),
Association(AssociationError),
Signer(SignerError),
ApiClient(ApiError),
IdentityUpdate(IdentityUpdateError),
AddressValidation(IdentifierValidationError),
Db(ConnectionError),
TooManyInstallations {
inbox_id: String,
count: usize,
max: usize,
},
GeneratePostQuantumKey(GeneratePostQuantumKeyError),
InvalidExtension(InvalidExtensionError),
MissingPostQuantumPublicKey,
Bincode,
UninitializedField(UninitializedFieldError),
}Variants§
CredentialSerialization(EncodeError)
Credential serialization error.
Failed to encode MLS credential. Not retryable.
Decode(DecodeError)
Decode error.
Protobuf decoding failed. Not retryable.
InstallationIdNotFound(String)
Installation not found.
Installation ID not found in network association state. Not retryable.
SignatureRequestBuilder(SignatureRequestError)
Signature(SignatureError)
BasicCredential(BasicCredentialError)
Basic credential error.
MLS basic credential validation failed. Not retryable.
LegacyKeyReuse
Legacy key re-use.
Attempted to reuse a legacy key. Not retryable.
UninitializedIdentity
Uninitialized identity.
Identity not yet initialized. Not retryable.
InstallationKey(String)
Installation key error.
Problem with installation key. Not retryable.
MalformedLegacyKey(String)
Malformed legacy key.
Legacy key format is invalid. Not retryable.
LegacySignature(String)
Legacy signature error.
Legacy signature is invalid. Not retryable.
Crypto(CryptoError)
Crypto error.
Cryptographic operation failed. Not retryable.
LegacyKeyMismatch
Legacy key mismatch.
Legacy key does not match address. Not retryable.
OpenMls(Error)
OpenMLS error.
OpenMLS library error. Not retryable.
StorageError(StorageError)
OpenMlsStorageError(SqlKeyStoreError)
KeyPackageGenerationError(KeyPackageNewError)
Key package generation error.
Failed to generate MLS key package. Not retryable.
KeyPackageVerificationError(KeyPackageVerificationError)
InboxIdMismatch
Inbox ID mismatch.
Associated InboxID does not match stored value. Not retryable.
NoAssociatedInboxId(String)
No associated Inbox ID.
Address has no associated InboxID. Not retryable.
RequiredIdentityNotFound
Required identity not found.
Identity was not found in cache. Not retryable.
NewIdentity(String)
New identity creation error.
Error creating a new identity. Not retryable.
Association(AssociationError)
Signer(SignerError)
Signer error.
Cryptographic signer failed. Not retryable.
ApiClient(ApiError)
IdentityUpdate(IdentityUpdateError)
Identity publication failed. Retryability depends on the cause.
AddressValidation(IdentifierValidationError)
Db(ConnectionError)
TooManyInstallations
Too many installations.
InboxID has reached max installation count. Not retryable.
GeneratePostQuantumKey(GeneratePostQuantumKeyError)
InvalidExtension(InvalidExtensionError)
Invalid extension error.
MLS extension validation failed. Not retryable.
MissingPostQuantumPublicKey
Missing PQ public key.
Post-quantum public key not found. Not retryable.
Bincode
Bincode serialization error.
Binary serialization failed. Not retryable.
UninitializedField(UninitializedFieldError)
Uninitialized field.
Builder field not initialized. Not retryable.
Trait Implementations§
Source§impl Debug for IdentityError
impl Debug for IdentityError
Source§impl Display for IdentityError
impl Display for IdentityError
Source§impl Error for IdentityError
impl Error for IdentityError
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 ErrorCode for IdentityError
impl ErrorCode for IdentityError
Source§fn error_code(&self) -> &'static str
fn error_code(&self) -> &'static str
Source§impl From<ApiError> for IdentityError
impl From<ApiError> for IdentityError
Source§impl From<AssociationError> for IdentityError
impl From<AssociationError> for IdentityError
Source§fn from(source: AssociationError) -> Self
fn from(source: AssociationError) -> Self
Source§impl From<BasicCredentialError> for IdentityError
impl From<BasicCredentialError> for IdentityError
Source§impl From<ConnectionError> for IdentityError
impl From<ConnectionError> for IdentityError
Source§fn from(source: ConnectionError) -> Self
fn from(source: ConnectionError) -> Self
Source§impl From<CryptoError> for IdentityError
impl From<CryptoError> for IdentityError
Source§impl From<DecodeError> for IdentityError
impl From<DecodeError> for IdentityError
Source§fn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Source§impl From<EncodeError> for IdentityError
impl From<EncodeError> for IdentityError
Source§fn from(source: EncodeError) -> Self
fn from(source: EncodeError) -> Self
Source§impl From<Error> for IdentityError
impl From<Error> for IdentityError
Source§impl From<Error> for IdentityError
impl From<Error> for IdentityError
Source§impl From<GeneratePostQuantumKeyError> for IdentityError
impl From<GeneratePostQuantumKeyError> for IdentityError
Source§fn from(source: GeneratePostQuantumKeyError) -> Self
fn from(source: GeneratePostQuantumKeyError) -> Self
Source§impl From<IdentifierValidationError> for IdentityError
impl From<IdentifierValidationError> for IdentityError
Source§fn from(source: IdentifierValidationError) -> Self
fn from(source: IdentifierValidationError) -> Self
Source§impl From<IdentityError> for ClientBuilderError
impl From<IdentityError> for ClientBuilderError
Source§fn from(source: IdentityError) -> Self
fn from(source: IdentityError) -> Self
Source§impl From<IdentityError> for ClientError
impl From<IdentityError> for ClientError
Source§fn from(source: IdentityError) -> Self
fn from(source: IdentityError) -> Self
Source§impl From<IdentityError> for GroupError
impl From<IdentityError> for GroupError
Source§fn from(source: IdentityError) -> Self
fn from(source: IdentityError) -> Self
Source§impl From<IdentityError> for KeyPackageMaintenanceError
impl From<IdentityError> for KeyPackageMaintenanceError
Source§fn from(source: IdentityError) -> Self
fn from(source: IdentityError) -> Self
Source§impl From<IdentityError> for TaskWorkerError
impl From<IdentityError> for TaskWorkerError
Source§fn from(source: IdentityError) -> Self
fn from(source: IdentityError) -> Self
Source§impl From<IdentityUpdateError> for IdentityError
impl From<IdentityUpdateError> for IdentityError
Source§fn from(source: IdentityUpdateError) -> Self
fn from(source: IdentityUpdateError) -> Self
Source§impl From<InvalidExtensionError> for IdentityError
impl From<InvalidExtensionError> for IdentityError
Source§impl From<KeyPackageNewError> for IdentityError
impl From<KeyPackageNewError> for IdentityError
Source§impl From<KeyPackageVerificationError> for IdentityError
impl From<KeyPackageVerificationError> for IdentityError
Source§fn from(source: KeyPackageVerificationError) -> Self
fn from(source: KeyPackageVerificationError) -> Self
Source§impl From<SignatureError> for IdentityError
impl From<SignatureError> for IdentityError
Source§fn from(source: SignatureError) -> Self
fn from(source: SignatureError) -> Self
Source§impl From<SignatureRequestError> for IdentityError
impl From<SignatureRequestError> for IdentityError
Source§fn from(source: SignatureRequestError) -> Self
fn from(source: SignatureRequestError) -> Self
Source§impl From<SignerError> for IdentityError
impl From<SignerError> for IdentityError
Source§fn from(source: SignerError) -> Self
fn from(source: SignerError) -> Self
Source§impl From<SqlKeyStoreError> for IdentityError
impl From<SqlKeyStoreError> for IdentityError
Source§fn from(source: SqlKeyStoreError) -> Self
fn from(source: SqlKeyStoreError) -> Self
Source§impl From<StorageError> for IdentityError
impl From<StorageError> for IdentityError
Source§fn from(source: StorageError) -> Self
fn from(source: StorageError) -> Self
Source§impl From<UninitializedFieldError> for IdentityError
impl From<UninitializedFieldError> for IdentityError
Source§impl NeedsDbReconnect for IdentityError
impl NeedsDbReconnect for IdentityError
fn needs_db_reconnect(&self) -> bool
Source§impl RetryableError for IdentityError
impl RetryableError for IdentityError
fn is_retryable(&self) -> bool
Auto Trait Implementations§
impl Freeze for IdentityError
impl !RefUnwindSafe for IdentityError
impl Send for IdentityError
impl Sync for IdentityError
impl Unpin for IdentityError
impl UnsafeUnpin for IdentityError
impl !UnwindSafe for IdentityError
Blanket Implementations§
§impl<T> AggregateExpressionMethods for T
impl<T> AggregateExpressionMethods for T
§fn aggregate_distinct(self) -> Self::Outputwhere
Self: DistinctDsl,
fn aggregate_distinct(self) -> Self::Outputwhere
Self: DistinctDsl,
DISTINCT modifier for aggregate functions Read more§fn aggregate_all(self) -> Self::Outputwhere
Self: AllDsl,
fn aggregate_all(self) -> Self::Outputwhere
Self: AllDsl,
ALL modifier for aggregate functions Read more§fn aggregate_filter<P>(self, f: P) -> Self::Outputwhere
P: AsExpression<Bool>,
Self: FilterDsl<<P as AsExpression<Bool>>::Expression>,
fn aggregate_filter<P>(self, f: P) -> Self::Outputwhere
P: AsExpression<Bool>,
Self: FilterDsl<<P as AsExpression<Bool>>::Expression>,
§fn aggregate_order<O>(self, o: O) -> Self::Outputwhere
Self: OrderAggregateDsl<O>,
fn aggregate_order<O>(self, o: O) -> Self::Outputwhere
Self: OrderAggregateDsl<O>,
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSend for T
impl<T> DowncastSend for T
§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
§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§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<T> IntoSql for T
impl<T> IntoSql for T
§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].Source§impl<TraitVariantBlanketType> LocalNeedsDbReconnect for TraitVariantBlanketTypewhere
TraitVariantBlanketType: NeedsDbReconnect,
impl<TraitVariantBlanketType> LocalNeedsDbReconnect for TraitVariantBlanketTypewhere
TraitVariantBlanketType: NeedsDbReconnect,
fn needs_db_reconnect(&self) -> bool
§impl<D> OwoColorize for D
impl<D> OwoColorize for D
§fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
§fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
§fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
§fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
§fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
§fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
§fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
§fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
§fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
§fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
§fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
§fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
§fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
§fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
§fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
§fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
§fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
§fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
§fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
§fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
§fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
§fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
§fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
§fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
§fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
§fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
OwoColorize::fg] or
a color-specific method, such as [OwoColorize::green], Read more§fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
OwoColorize::bg] or
a color-specific method, such as [OwoColorize::on_yellow], Read more