pub enum Error {
Show 20 variants
NoOpenVault,
NotDirectory(PathBuf),
NotFileContent,
NoCache,
NoFolderPassword(VaultId),
NoFilePassword,
SecretNotFound(SecretId),
NoVaultEvent,
TryFromSlice(TryFromSliceError),
FileSystem(Error),
Vault(Error),
Login(Error),
Core(Error),
Authentication(AuthenticationError),
Password(Error),
Sync(Error),
BackendStorage(StorageError),
Backend(Error),
Database(Error),
Io(Error),
}Expand description
Errors generated by the client storage library.
Variants§
NoOpenVault
Error generated attempting to make changes to the current vault but no vault is open.
NotDirectory(PathBuf)
Error generated when a directory is expected.
NotFileContent
Error generated when a file secret is expected.
NoCache
Error generated if we could not determine a cache directory.
NoFolderPassword(VaultId)
Error generated when a folder password in the identity vault could not be located.
NoFilePassword
Error generated when a file encryption password is required.
SecretNotFound(SecretId)
Error generated when a secret could not be found.
NoVaultEvent
Error generated if we could not find a create vault event in a collection of event records or as the first event in a folder event log.
TryFromSlice(TryFromSliceError)
Error generated converting to fixed length slice.
FileSystem(Error)
Error generated by the filesystem library.
Vault(Error)
Error generated by the vault library.
Login(Error)
Error generated by the login library.
Core(Error)
Errors generated by the core library.
Authentication(AuthenticationError)
Authentication errors.
Password(Error)
Errors generated by the password library.
Sync(Error)
Errors generated by the sync library.
BackendStorage(StorageError)
Errors generated by the backend storage.
Backend(Error)
Errors generated by the backend library.
Database(Error)
Errors generated by the database library.
Io(Error)
Errors generated by the IO module.
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<StorageError> for Error
impl From<StorageError> for Error
Source§fn from(source: StorageError) -> Self
fn from(source: StorageError) -> 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