pub enum LoadError {
Failure(StorageFailure),
Corrupt(String),
}Expand description
Why a database couldn’t be read.
Variants§
Failure(StorageFailure)
The storage failed: the client runs on memory.
Corrupt(String)
What it holds doesn’t decode, so the client state is lost
(InvalidRefCountError in JS): the client drops the database and
starts a new one.
Trait Implementations§
impl Eq for LoadError
Source§impl From<StorageFailure> for LoadError
impl From<StorageFailure> for LoadError
Source§fn from(f: StorageFailure) -> Self
fn from(f: StorageFailure) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for LoadError
Auto Trait Implementations§
impl Forget for LoadError
impl Freeze for LoadError
impl Move for LoadError
impl RefUnwindSafe for LoadError
impl Send for LoadError
impl Sync for LoadError
impl Unpin for LoadError
impl UnsafeUnpin for LoadError
impl UnwindSafe for LoadError
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