pub enum Error {
Show 17 variants
DatabaseExists(PathBuf),
CacheNotAvailable(Uuid),
NoOpenVault,
NotDirectory(PathBuf),
NotFileContent,
NoCache,
NoSearchIndex,
NoFolderPassword(VaultId),
NoStorage,
NoFilePassword,
SecretNotFound(SecretId),
Core(Error),
Sdk(Error),
Refinery(Error),
AsyncSqlite(Error),
TryFromSlice(TryFromSliceError),
Io(Error),
}Expand description
Errors generated by the database library.
Variants§
DatabaseExists(PathBuf)
Database file already exists.
CacheNotAvailable(Uuid)
Error generated attempting to access a vault that is not available.
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.
NoSearchIndex
Error generated when a search index is required.
NoFolderPassword(VaultId)
Error generated when a folder password in the identity vault could not be located.
NoStorage
Error generated when no storage is configured.
NoFilePassword
Error generated when a file encryption password is required.
SecretNotFound(SecretId)
Error generated when a secret could not be found.
Core(Error)
Errors generated by the core library.
Sdk(Error)
Errors generated by the SDK library.
Refinery(Error)
Errors generated by refinery migration library.
AsyncSqlite(Error)
Errors generated by the async sqlite library.
TryFromSlice(TryFromSliceError)
Error generated converting to fixed length slice.
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 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