pub enum StorageError {
Show 14 variants
NotFound {
path: PathBuf,
},
AlreadyExists {
path: PathBuf,
},
NotAFile {
path: PathBuf,
},
NotADirectory {
path: PathBuf,
},
InvalidName {
kind: &'static str,
value: String,
},
PathConflict {
path: PathBuf,
message: &'static str,
},
Io {
operation: &'static str,
path: PathBuf,
source: Error,
},
ReaderIo {
operation: &'static str,
source: Error,
},
DefinitionsLoad {
message: String,
},
Cancelled {
operation: &'static str,
},
AsyncRuntime {
operation: &'static str,
message: String,
},
Process {
operation: &'static str,
message: String,
},
Watch {
operation: &'static str,
message: String,
},
LockTimeout {
path: PathBuf,
operation: &'static str,
},
}Expand description
Errors produced by Dhara storage analysis and metadata operations.
Variants§
NotFound
The supplied path did not exist at the time of access.
AlreadyExists
The destination path already existed and overwrite was disabled.
NotAFile
The supplied path existed but did not refer to a file.
NotADirectory
The supplied path existed but did not refer to a directory.
InvalidName
A file-system name argument was invalid for the requested operation.
Fields
PathConflict
The requested operation could not be completed because the path shape conflicted with the API contract.
Fields
Io
A path-based I/O operation failed.
Fields
ReaderIo
A reader-based I/O operation failed.
Fields
DefinitionsLoad
The embedded definitions package could not be decoded.
Cancelled
The requested operation was cancelled before completion.
AsyncRuntime
An async runtime task failed before the storage operation completed.
Fields
Process
Task-queue / process orchestration failed unexpectedly.
Fields
Watch
A storage watcher failed to initialize or deliver events.
Fields
LockTimeout
Timed out waiting for a sharing/busy lock while opening a file.
Trait Implementations§
Source§impl Debug for StorageError
impl Debug for StorageError
Source§impl Display for StorageError
impl Display for StorageError
Source§impl Error for StorageError
impl Error for StorageError
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
use the Display impl or to_string()