pub enum Error {
Show 23 variants
NoAccount(String),
NoFolderPassword(VaultId),
NotIdentityFolder,
AgeIdentityParse(String),
NoIdentityKey,
VaultEntryKind(String),
InvalidX25519Identity(String),
NoSecretUrn(VaultId, Urn),
NoSecretId(VaultId, SecretId),
NoFileEncryptionPassword,
TryFromSlice(TryFromSliceError),
Io(Error),
Core(Error),
Authentication(AuthenticationError),
Backend(Error),
Database(Error),
AsyncSqlite(Error),
Sqlite(Error),
Password(Error),
Signer(Error),
Vault(Error),
Ed25519(Error),
Urn(Error),
}Expand description
Errors generated by the library.
Variants§
NoAccount(String)
Error generated when an account does not exist.
NoFolderPassword(VaultId)
Error generated when a folder password could not be located.
NotIdentityFolder
Error generated when a login vault does not contain the identity bit flag.
AgeIdentityParse(String)
Error generated parsing an AGE identity from a string.
NoIdentityKey
Error generated when an identity key could not be found in an identity vault.
VaultEntryKind(String)
Error generated when a vault entry in an identity vault is of the wrong secret kind.
InvalidX25519Identity(String)
Error generated when attempting to parse an AGE identity.
NoSecretUrn(VaultId, Urn)
Error generated when a vault does not contain a secret by URN.
NoSecretId(VaultId, SecretId)
Error generated when a vault does not contain a secret by identifier.
NoFileEncryptionPassword
Error generated when a file encryption password could not be found.
TryFromSlice(TryFromSliceError)
Error generated converting to fixed length slice.
Io(Error)
Error generated by the IO module.
Core(Error)
Error generated by the core library.
Authentication(AuthenticationError)
Authentication errors.
Backend(Error)
Error generated by the backend library.
Database(Error)
Error generated by the database library.
AsyncSqlite(Error)
Error generated by the async sqlite library.
Sqlite(Error)
Error generated by the sqlite library.
Password(Error)
Error generated by the password library.
Signer(Error)
Error generated by the signer library.
Vault(Error)
Error generated by the vault library.
Ed25519(Error)
Error generated by the Ed25519 library.
Urn(Error)
Error generated by the URN library.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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<AuthenticationError> for Error
impl From<AuthenticationError> for Error
Source§fn from(source: AuthenticationError) -> Self
fn from(source: AuthenticationError) -> Self
Source§impl From<TryFromSliceError> for Error
impl From<TryFromSliceError> for Error
Source§fn from(source: TryFromSliceError) -> Self
fn from(source: TryFromSliceError) -> Self
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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