pub enum FileMemoryError {
UnsafeName {
name: String,
reason: String,
},
AlreadyExists(String),
NotFound(String),
OldTextNotFound(String),
Io {
path: String,
source: Error,
},
}Expand description
Errors from FileMemoryStore operations.
Variants§
UnsafeName
The memory name is unsafe (traversal, absolute path, separator, reserved name…).
AlreadyExists(String)
A memory with that name already exists.
NotFound(String)
No memory with that name exists.
OldTextNotFound(String)
str_replace could not find the old text.
Io
Filesystem I/O failure.
Trait Implementations§
Source§impl Debug for FileMemoryError
impl Debug for FileMemoryError
Source§impl Display for FileMemoryError
impl Display for FileMemoryError
Source§impl Error for FileMemoryError
impl Error for FileMemoryError
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 FileMemoryError
impl !UnwindSafe for FileMemoryError
impl Freeze for FileMemoryError
impl Send for FileMemoryError
impl Sync for FileMemoryError
impl Unpin for FileMemoryError
impl UnsafeUnpin for FileMemoryError
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