pub enum DataDirectoryError {
AlreadyLocked(PathBuf),
MalformedFormat(PathBuf),
UnsupportedFormat {
found: u16,
supported: u16,
},
Manifest(ManifestError),
Io {
action: &'static str,
path: PathBuf,
source: Error,
},
}Expand description
Failure while opening or initializing a Hyphae data directory.
Variants§
AlreadyLocked(PathBuf)
Another writer already owns the directory lock.
MalformedFormat(PathBuf)
The FORMAT marker does not match the canonical representation.
UnsupportedFormat
The directory was created by a newer, unsupported disk format.
Manifest(ManifestError)
The immutable storage manifest could not be loaded or initialized.
Io
A filesystem operation failed.
Trait Implementations§
Source§impl Debug for DataDirectoryError
impl Debug for DataDirectoryError
Source§impl Display for DataDirectoryError
impl Display for DataDirectoryError
Source§impl Error for DataDirectoryError
impl Error for DataDirectoryError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<DataDirectoryError> for StorageError
impl From<DataDirectoryError> for StorageError
Source§fn from(source: DataDirectoryError) -> Self
fn from(source: DataDirectoryError) -> Self
Converts to this type from the input type.
Source§impl From<ManifestError> for DataDirectoryError
impl From<ManifestError> for DataDirectoryError
Source§fn from(source: ManifestError) -> Self
fn from(source: ManifestError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for DataDirectoryError
impl !UnwindSafe for DataDirectoryError
impl Freeze for DataDirectoryError
impl Send for DataDirectoryError
impl Sync for DataDirectoryError
impl Unpin for DataDirectoryError
impl UnsafeUnpin for DataDirectoryError
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
Mutably borrows from an owned value. Read more