pub enum RestoreReferenceError {
InvalidJournal {
journal: PathBuf,
},
Checksum(ChecksumError),
UnsupportedVersion(u16),
DuplicateJournal {
journal: PathBuf,
},
AuthorityConflict {
journal: PathBuf,
},
TooManyReferences {
limit: usize,
},
}Expand description
Typed schema or immutable-reference transition failure.
Variants§
InvalidJournal
The journal path is not an exact bounded absolute UTF-8 location.
Checksum(ChecksumError)
An intent digest is malformed.
UnsupportedVersion(u16)
The persisted reference generation is not maintained.
DuplicateJournal
A decoded record repeats one journal location.
AuthorityConflict
An existing journal location is bound to different intent bytes.
TooManyReferences
Retaining another dependency would exceed the maintained count bound.
Trait Implementations§
Source§impl Debug for RestoreReferenceError
impl Debug for RestoreReferenceError
Source§impl Display for RestoreReferenceError
impl Display for RestoreReferenceError
Source§impl Error for RestoreReferenceError
impl Error for RestoreReferenceError
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<ChecksumError> for RestoreReferenceError
impl From<ChecksumError> for RestoreReferenceError
Source§fn from(source: ChecksumError) -> Self
fn from(source: ChecksumError) -> Self
Converts to this type from the input type.
Source§impl From<RestoreReferenceError> for PersistenceError
impl From<RestoreReferenceError> for PersistenceError
Source§fn from(source: RestoreReferenceError) -> Self
fn from(source: RestoreReferenceError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RestoreReferenceError
impl RefUnwindSafe for RestoreReferenceError
impl Send for RestoreReferenceError
impl Sync for RestoreReferenceError
impl Unpin for RestoreReferenceError
impl UnsafeUnpin for RestoreReferenceError
impl UnwindSafe for RestoreReferenceError
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