pub enum LoadWriteError {
Write(WriteError),
Load(LoadError),
}Expand description
An error that may occur when storing or loading data from persistent storage.
Variants§
Write(WriteError)
Load(LoadError)
Trait Implementations§
Source§impl Debug for LoadWriteError
impl Debug for LoadWriteError
Source§impl Display for LoadWriteError
impl Display for LoadWriteError
Source§impl Error for LoadWriteError
impl Error for LoadWriteError
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<Error> for LoadWriteError
In the context where the LoadWriteError is used we want to propagate
write errors out. So this implementation is the more useful one as opposed
to the implementation which maps io errors through the LoadError.
impl From<Error> for LoadWriteError
In the context where the LoadWriteError is used we want to propagate
write errors out. So this implementation is the more useful one as opposed
to the implementation which maps io errors through the LoadError.
Source§impl From<LoadError> for LoadWriteError
impl From<LoadError> for LoadWriteError
Source§impl From<WriteError> for LoadWriteError
impl From<WriteError> for LoadWriteError
Source§fn from(source: WriteError) -> Self
fn from(source: WriteError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for LoadWriteError
impl !RefUnwindSafe for LoadWriteError
impl Send for LoadWriteError
impl Sync for LoadWriteError
impl Unpin for LoadWriteError
impl !UnwindSafe for LoadWriteError
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