Enum libimagstore::error::StoreErrorKind
[−]
pub enum StoreErrorKind { Msg(String), Io(Error), Fmt(Error), TomlDeserError(Error), GlobPatternError(PatternError), TomlQueryError(Error), ConfigurationError, ConfigTypeError(&'static str, &'static str), ConfigKeyMissingError(&'static str), VersionError, CreateStoreDirDenied, FileError, IoError, IdLocked, IdNotFound(StoreId), FileNotFound, FileNotCreated, FileNotWritten, FileNotSeeked, FileNotRemoved, FileNotRenamed, FileNotCopied, DirNotCreated, StorePathExists(PathBuf), StorePathCreate(PathBuf), LockError, LockPoisoned, EntryAlreadyBorrowed(StoreId), EntryAlreadyExists(StoreId), MalformedEntry, HeaderTypeFailure, EncodingError, EntryRenameError(PathBuf, PathBuf), StoreIdHandlingError, StoreIdLocalPartAbsoluteError(PathBuf), StoreIdBuildFromFullPathError, StoreIdHasNoBaseError(PathBuf), CreateCallError, RetrieveCallError, GetCallError, GetAllVersionsCallError, RetrieveForModuleCallError, UpdateCallError, RetrieveCopyCallError, DeleteCallError, MoveCallError, MoveByIdCallError, MissingMainSection, MissingVersionInfo, NonTableInBaseTable, HeaderInconsistency, // some variants omitted }
The kind of an error.
Variants
Msg(String)
A convenient variant for String.
Io(Error)
Fmt(Error)
TomlDeserError(Error)
GlobPatternError(PatternError)
TomlQueryError(Error)
ConfigurationError
ConfigTypeError(&'static str, &'static str)
ConfigKeyMissingError(&'static str)
VersionError
CreateStoreDirDenied
FileError
IoError
IdLocked
IdNotFound(StoreId)
FileNotFound
FileNotCreated
FileNotWritten
FileNotSeeked
FileNotRemoved
FileNotRenamed
FileNotCopied
DirNotCreated
StorePathExists(PathBuf)
StorePathCreate(PathBuf)
LockError
LockPoisoned
EntryAlreadyBorrowed(StoreId)
EntryAlreadyExists(StoreId)
MalformedEntry
HeaderTypeFailure
EncodingError
EntryRenameError(PathBuf, PathBuf)
StoreIdHandlingError
StoreIdLocalPartAbsoluteError(PathBuf)
StoreIdBuildFromFullPathError
StoreIdHasNoBaseError(PathBuf)
CreateCallError
RetrieveCallError
GetCallError
GetAllVersionsCallError
RetrieveForModuleCallError
UpdateCallError
RetrieveCopyCallError
DeleteCallError
MoveCallError
MoveByIdCallError
MissingMainSection
MissingVersionInfo
NonTableInBaseTable
HeaderInconsistency
Methods
impl StoreErrorKind
pub fn description(&self) -> &str
A string describing the error kind.
Trait Implementations
impl From<StoreErrorKind> for StoreError
fn from(e: StoreErrorKind) -> Self
Performs the conversion.
impl Debug for StoreErrorKind
fn fmt(&self, __arg_0: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Display for StoreErrorKind
impl<'a> From<&'a str> for StoreErrorKind
impl From<String> for StoreErrorKind
impl From<StoreError> for StoreErrorKind
fn from(e: StoreError) -> Self
Performs the conversion.