Enum libimagstore::error::StoreErrorKind
[−]
pub enum StoreErrorKind { Msg(String), Io(Error), TomlDeserError(Error), GlobPatternError(PatternError), ConfigurationError, ConfigTypeError, ConfigKeyMissingError, 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)
TomlDeserError(Error)
GlobPatternError(PatternError)
ConfigurationError
ConfigTypeError
ConfigKeyMissingError
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
fn description(&self) -> &str
A string describing the error kind.
Trait Implementations
impl Debug for StoreErrorKind
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.