pub enum DurableMemoryError {
RelativePath {
role: &'static str,
path: PathBuf,
},
HomeMissing,
Io {
operation: &'static str,
path: PathBuf,
source: Error,
},
WorkspaceNotDirectory {
path: PathBuf,
},
CorruptState {
path: PathBuf,
message: String,
},
Denied {
message: String,
},
}Expand description
Why a durable-memory operation failed.
Variants§
RelativePath
A required path was relative.
HomeMissing
HOME was missing or relative, so the XDG data home cannot be resolved.
Io
Filesystem operation failed.
Fields
WorkspaceNotDirectory
The workspace root exists and is not a directory.
CorruptState
The coordination file could not be decoded.
Denied
A memory write violated the filesystem policy.
Trait Implementations§
Source§impl Debug for DurableMemoryError
impl Debug for DurableMemoryError
Source§impl Display for DurableMemoryError
impl Display for DurableMemoryError
Source§impl Error for DurableMemoryError
impl Error for DurableMemoryError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for DurableMemoryError
impl !UnwindSafe for DurableMemoryError
impl Forget for DurableMemoryError
impl Freeze for DurableMemoryError
impl Move for DurableMemoryError
impl Send for DurableMemoryError
impl Sync for DurableMemoryError
impl Unpin for DurableMemoryError
impl UnsafeUnpin for DurableMemoryError
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