pub enum SnapshotError {
Show 24 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),
VerifyEpochStakes(VerifyEpochStakesError),
NewFromDir(SnapshotNewFromDirError),
InvalidSnapshotDirPath(PathBuf),
InvalidAppendVecPath(PathBuf),
InvalidAccountPath(PathBuf),
NoSnapshotSlotDir(PathBuf),
AccountPathsMismatch,
AddBankSnapshot(AddBankSnapshotError, Slot),
ArchiveSnapshotPackage(ArchiveSnapshotPackageError),
RebuildStorages(String),
}
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)
VerifyEpochStakes(VerifyEpochStakesError)
NewFromDir(SnapshotNewFromDirError)
InvalidSnapshotDirPath(PathBuf)
InvalidAppendVecPath(PathBuf)
InvalidAccountPath(PathBuf)
NoSnapshotSlotDir(PathBuf)
AccountPathsMismatch
AddBankSnapshot(AddBankSnapshotError, Slot)
ArchiveSnapshotPackage(ArchiveSnapshotPackageError)
RebuildStorages(String)
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<VerifyEpochStakesError> for SnapshotError
impl From<VerifyEpochStakesError> for SnapshotError
Source§fn from(source: VerifyEpochStakesError) -> Self
fn from(source: VerifyEpochStakesError) -> 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