pub enum PersistError<E: Error> {
Export(ExportError),
Store(E),
NoPrincipalGenesis,
}Expand description
Errors from persist_entries (combines export and store errors).
Variants§
Export(ExportError)
Export failed.
Store(E)
Store operation failed.
NoPrincipalGenesis
Principal has no PrincipalGenesis (Level 1/2 cannot be persisted).
Trait Implementations§
Source§impl<E> Display for PersistError<E>
impl<E> Display for PersistError<E>
Source§impl<E: Error> Error for PersistError<E>
impl<E: Error> Error for PersistError<E>
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<E: Error> From<ExportError> for PersistError<E>
impl<E: Error> From<ExportError> for PersistError<E>
Source§fn from(source: ExportError) -> Self
fn from(source: ExportError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<E> Freeze for PersistError<E>where
E: Freeze,
impl<E> !RefUnwindSafe for PersistError<E>
impl<E> Send for PersistError<E>where
E: Send,
impl<E> Sync for PersistError<E>where
E: Sync,
impl<E> Unpin for PersistError<E>where
E: Unpin,
impl<E> UnsafeUnpin for PersistError<E>where
E: UnsafeUnpin,
impl<E> !UnwindSafe for PersistError<E>
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