pub enum AccountError {
Show 24 variants
InvalidLocalState,
AccountNotFound {
username: String,
},
LoginNameAlreadyExists {
username: String,
},
DuplicateAccountsDetected {
username: String,
count: usize,
},
KeyNotFound {
key_id: String,
},
KeyAlreadyExists {
key_id: String,
},
EncryptionFailed {
reason: String,
},
DecryptionFailed {
reason: String,
},
InsufficientPermissions,
NoAdminKey {
database_id: ID,
},
DatabaseNotTracked {
database_id: ID,
},
DatabaseNotShared {
database_id: ID,
},
MissingDatabaseCapability {
database_id: ID,
},
DatabaseNotFoundByName {
name: String,
},
AccountDisabled {
username: String,
},
InvalidSaltLength {
expected: usize,
actual: usize,
},
InvalidNonceLength {
expected: usize,
actual: usize,
},
NoKeyForDatabase {
database_id: ID,
},
NoSigKeyMapping {
key_id: String,
database_id: ID,
},
NoSigKeyFound {
key_id: String,
database_id: ID,
},
DatabaseAccessPending {
database_id: ID,
},
InvalidKeyFormat {
reason: String,
},
NoKeysAvailable,
DuplicateBuilderStore {
name: String,
},
}Variants§
InvalidLocalState
AccountNotFound
LoginNameAlreadyExists
DuplicateAccountsDetected
KeyNotFound
KeyAlreadyExists
EncryptionFailed
DecryptionFailed
InsufficientPermissions
NoAdminKey
DatabaseNotTracked
MissingDatabaseCapability
DatabaseNotFoundByName
AccountDisabled
InvalidSaltLength
InvalidNonceLength
NoKeyForDatabase
NoSigKeyMapping
NoSigKeyFound
DatabaseAccessPending
InvalidKeyFormat
NoKeysAvailable
DuplicateBuilderStore
Implementations§
Source§impl AccountError
impl AccountError
Sourcepub fn is_not_found(&self) -> bool
pub fn is_not_found(&self) -> bool
Check if this error indicates a resource was not found.
Trait Implementations§
Source§impl Debug for AccountError
impl Debug for AccountError
Source§impl Display for AccountError
impl Display for AccountError
Source§impl Error for AccountError
impl Error for AccountError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<AccountError> for Error
impl From<AccountError> for Error
Source§fn from(err: AccountError) -> Self
fn from(err: AccountError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AccountError
impl RefUnwindSafe for AccountError
impl Send for AccountError
impl Sync for AccountError
impl Unpin for AccountError
impl UnsafeUnpin for AccountError
impl UnwindSafe for AccountError
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
Mutably borrows from an owned value. 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>
Converts
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>
Converts
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