pub enum SnapshotError {
Show 23 variants
Io(Error),
AccountsFileError(AccountsFileError),
Serialize(Error),
CrossbeamSend(SendError<PathBuf>),
ArchiveGenerationFailure(ExitStatus),
StoragePathSymlinkInvalid,
UnpackError(UnpackError),
IoWithSource(Error, &'static str),
IoWithSourceAndFile(Error, &'static str, PathBuf),
PathToFileNameError(PathBuf),
FileNameToStrError(PathBuf),
ParseSnapshotArchiveFileNameError(String),
MismatchedBaseSlot(Slot, Slot),
NoSnapshotArchives,
MismatchedSlotHash((Slot, SnapshotHash), (Slot, SnapshotHash)),
VerifySlotDeltas(VerifySlotDeltasError),
NewFromDir(SnapshotNewFromDirError),
InvalidSnapshotDirPath(PathBuf),
InvalidAppendVecPath(PathBuf),
InvalidAccountPath(PathBuf),
NoSnapshotSlotDir(PathBuf),
AccountPathsMismatch,
AddBankSnapshot(AddBankSnapshotError, Slot),
}
Variants§
Io(Error)
AccountsFileError(AccountsFileError)
Serialize(Error)
CrossbeamSend(SendError<PathBuf>)
ArchiveGenerationFailure(ExitStatus)
StoragePathSymlinkInvalid
UnpackError(UnpackError)
IoWithSource(Error, &'static str)
IoWithSourceAndFile(Error, &'static str, PathBuf)
PathToFileNameError(PathBuf)
FileNameToStrError(PathBuf)
ParseSnapshotArchiveFileNameError(String)
MismatchedBaseSlot(Slot, Slot)
NoSnapshotArchives
MismatchedSlotHash((Slot, SnapshotHash), (Slot, SnapshotHash))
VerifySlotDeltas(VerifySlotDeltasError)
NewFromDir(SnapshotNewFromDirError)
InvalidSnapshotDirPath(PathBuf)
InvalidAppendVecPath(PathBuf)
InvalidAccountPath(PathBuf)
NoSnapshotSlotDir(PathBuf)
AccountPathsMismatch
AddBankSnapshot(AddBankSnapshotError, Slot)
Trait Implementations§
source§impl Debug for SnapshotError
impl Debug for SnapshotError
source§impl Display for SnapshotError
impl Display for SnapshotError
source§impl Error for SnapshotError
impl Error for SnapshotError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<AccountsFileError> for SnapshotError
impl From<AccountsFileError> for SnapshotError
source§fn from(source: AccountsFileError) -> Self
fn from(source: AccountsFileError) -> Self
Converts to this type from the input type.
source§impl From<Error> for SnapshotError
impl From<Error> for SnapshotError
source§impl From<SnapshotNewFromDirError> for SnapshotError
impl From<SnapshotNewFromDirError> for SnapshotError
source§fn from(source: SnapshotNewFromDirError) -> Self
fn from(source: SnapshotNewFromDirError) -> Self
Converts to this type from the input type.
source§impl From<UnpackError> for SnapshotError
impl From<UnpackError> for SnapshotError
source§fn from(source: UnpackError) -> Self
fn from(source: UnpackError) -> Self
Converts to this type from the input type.
source§impl From<VerifySlotDeltasError> for SnapshotError
impl From<VerifySlotDeltasError> for SnapshotError
source§fn from(source: VerifySlotDeltasError) -> Self
fn from(source: VerifySlotDeltasError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for SnapshotError
impl Send for SnapshotError
impl Sync for SnapshotError
impl Unpin for SnapshotError
impl !UnwindSafe for SnapshotError
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