pub enum SnapshotError {
Show 22 variants
Io(Error),
AccountsFileError(AccountsFileError),
Serialize(Error),
CrossbeamSend(SendError<PathBuf>),
ArchiveGenerationFailure(ExitStatus),
UnpackError(UnpackError),
IoWithSource(Error, &'static str),
PathToFileNameError(PathBuf),
FileNameToStrError(PathBuf),
ParseSnapshotArchiveFileNameError(String),
MismatchedBaseSlot(Slot, Slot),
NoSnapshotArchives(PathBuf),
MismatchedSlotHash((Slot, SnapshotHash), (Slot, SnapshotHash)),
VerifySlotDeltas(VerifySlotDeltasError),
NewFromDir(SnapshotNewFromDirError),
InvalidSnapshotDirPath(PathBuf),
InvalidAppendVecPath(PathBuf),
InvalidAccountPath(PathBuf),
NoSnapshotSlotDir(PathBuf),
AccountPathsMismatch,
AddBankSnapshot(AddBankSnapshotError, Slot),
ArchiveSnapshotPackage(ArchiveSnapshotPackageError),
}
Variants§
Io(Error)
AccountsFileError(AccountsFileError)
Serialize(Error)
CrossbeamSend(SendError<PathBuf>)
ArchiveGenerationFailure(ExitStatus)
UnpackError(UnpackError)
IoWithSource(Error, &'static str)
PathToFileNameError(PathBuf)
FileNameToStrError(PathBuf)
ParseSnapshotArchiveFileNameError(String)
MismatchedBaseSlot(Slot, Slot)
NoSnapshotArchives(PathBuf)
MismatchedSlotHash((Slot, SnapshotHash), (Slot, SnapshotHash))
VerifySlotDeltas(VerifySlotDeltasError)
NewFromDir(SnapshotNewFromDirError)
InvalidSnapshotDirPath(PathBuf)
InvalidAppendVecPath(PathBuf)
InvalidAccountPath(PathBuf)
NoSnapshotSlotDir(PathBuf)
AccountPathsMismatch
AddBankSnapshot(AddBankSnapshotError, Slot)
ArchiveSnapshotPackage(ArchiveSnapshotPackageError)
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)>
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<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<ArchiveSnapshotPackageError> for SnapshotError
impl From<ArchiveSnapshotPackageError> for SnapshotError
source§fn from(source: ArchiveSnapshotPackageError) -> Self
fn from(source: ArchiveSnapshotPackageError) -> 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 Freeze for SnapshotError
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more