pub enum Error {
BadIdentity(u8, usize, String),
IdentityLength,
CommitNotFound(CommitHash),
CheckpointVerification {
checkpoint: CommitHash,
computed: CommitHash,
snapshot: Option<PathBuf>,
rollback_completed: bool,
},
RewindLeavesLength,
Core(Error),
Vault(Error),
TryFromSlice(TryFromSliceError),
Io(Error),
Json(Error),
}Expand description
Errors generated by the filesystem library.
Variants§
BadIdentity(u8, usize, String)
Error generated when a vault identity byte is wrong.
IdentityLength
Error generated when a buffer used to read identity bytes is not long enough.
CommitNotFound(CommitHash)
Error generated when a target commit hash could not be found.
CheckpointVerification
Error generated when replacing events in an event log does not compute the same root hash as the expected checkpoint.
RewindLeavesLength
Error generated trying to rewind an event log.
Core(Error)
Errors generated by the core library.
Vault(Error)
Errors generated by the vault library.
TryFromSlice(TryFromSliceError)
Error generated converting to fixed length slice.
Io(Error)
Errors generated by the IO module.
Json(Error)
Errors generated by the JSON library.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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<TryFromSliceError> for Error
impl From<TryFromSliceError> for Error
Source§fn from(source: TryFromSliceError) -> Self
fn from(source: TryFromSliceError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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