pub enum Error {
Show 37 variants
NoFolderPassword(VaultId),
NoDatabase,
NotFile(PathBuf),
NoDefaultFolder,
NoOpenFolder,
PemEncoding,
NoArchive,
NotArchived,
AlreadyArchived,
NoContactsFolder,
NotContact,
JsonPathQueryEmpty(Vec<String>),
NoClipboard,
TryFromSlice(TryFromSliceError),
Core(Error),
Authentication(AuthenticationError),
Search(Error),
Vault(Error),
Login(Error),
Signer(Error),
Sync(Error),
Password(Error),
BackendStorage(StorageError),
Storage(Error),
Backend(Error),
Database(Error),
Archive(Error),
Io(Error),
Json(Error),
Uuid(Error),
Hex(FromHexError),
Vcard(Error),
Clipboard(Error),
TimeZone(Error),
StripPrefix(StripPrefixError),
Migrate(Error),
BackupArchive(Error),
}Expand description
Error generated by the account library.
Variants§
NoFolderPassword(VaultId)
Error generated when a folder password could not be located.
NoDatabase
Error generated when a database is required.
NotFile(PathBuf)
Error generated when a path is not a file.
NoDefaultFolder
Error generated when no default folder is available.
NoOpenFolder
Error generated when an open folder is expected.
PemEncoding
Error generated when a PEM-encoded certificate is invalid.
NoArchive
Error generated when an archive folder is not available.
NotArchived
Error generated when attempting to unarchive a secret that is not archived.
AlreadyArchived
Error generated when attempting to archive a secret that is already archived.
NoContactsFolder
Error generated when a contacts folder is not available.
NotContact
Error generated when a secret is not a contact secret.
JsonPathQueryEmpty(Vec<String>)
Error generated by the JSON path library when no nodes matched.
NoClipboard
Error when no clipboard is configured.
TryFromSlice(TryFromSliceError)
Error generated converting to fixed length slice.
Core(Error)
Error generated by the core library.
Authentication(AuthenticationError)
Authentication errors.
Search(Error)
Error generated by the search library.
Vault(Error)
Error generated by the vault library.
Login(Error)
Error generated by the login library.
Signer(Error)
Error generated by the signer library.
Sync(Error)
Error generated by the sync library.
Password(Error)
Error generated by the password library.
BackendStorage(StorageError)
Error generated by the backend storage .
Storage(Error)
Error generated by the storage library.
Backend(Error)
Error generated by the backend library.
Database(Error)
Error generated by the database library.
Archive(Error)
Error generated by the database archive library.
Io(Error)
Error generated by the IO module.
Json(Error)
Error generated by the JSON library.
Uuid(Error)
Error generated by the UUID library.
Hex(FromHexError)
Error generated by the hexadecimal library.
Vcard(Error)
Error generated by the VCard library.
Clipboard(Error)
Error generated by the clipboard library.
TimeZone(Error)
Error generated attempting to detect the system time zone.
StripPrefix(StripPrefixError)
Error generated when stripping a prefix from a path.
Migrate(Error)
Error generated by the migrate library.
BackupArchive(Error)
Error generated by the backup archive 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 ErrorExt for Error
impl ErrorExt for Error
Source§fn is_secret_not_found(&self) -> bool
fn is_secret_not_found(&self) -> bool
Source§fn is_forbidden(&self) -> bool
fn is_forbidden(&self) -> bool
Source§fn is_permission_denied(&self) -> bool
fn is_permission_denied(&self) -> bool
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<FromHexError> for Error
impl From<FromHexError> for Error
Source§fn from(source: FromHexError) -> Self
fn from(source: FromHexError) -> Self
Source§impl From<StorageError> for Error
impl From<StorageError> for Error
Source§fn from(source: StorageError) -> Self
fn from(source: StorageError) -> Self
Source§impl From<StripPrefixError> for Error
impl From<StripPrefixError> for Error
Source§fn from(source: StripPrefixError) -> Self
fn from(source: StripPrefixError) -> 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