pub enum TieredStorageError {
Io(Error),
MagicNumberMismatch(u64, u64),
AttemptToUpdateReadOnly(PathBuf),
UnknownFormat(PathBuf),
Unsupported(),
InvalidFooterSize(u64, u64),
InvalidFooterVersion(u64),
SanitizeFooter(SanitizeFooterError),
OffsetOutOfBounds(usize, usize),
OffsetAlignmentError(usize, usize),
}
Variants§
Io(Error)
MagicNumberMismatch(u64, u64)
AttemptToUpdateReadOnly(PathBuf)
UnknownFormat(PathBuf)
Unsupported()
OffsetOutOfBounds(usize, usize)
OffsetAlignmentError(usize, usize)
Trait Implementations§
source§impl Debug for TieredStorageError
impl Debug for TieredStorageError
source§impl Display for TieredStorageError
impl Display for TieredStorageError
source§impl Error for TieredStorageError
impl Error for TieredStorageError
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<Error> for TieredStorageError
impl From<Error> for TieredStorageError
source§fn from(source: SanitizeFooterError) -> Self
fn from(source: SanitizeFooterError) -> Self
Converts to this type from the input type.
source§impl From<TieredStorageError> for AccountsFileError
impl From<TieredStorageError> for AccountsFileError
source§fn from(source: TieredStorageError) -> Self
fn from(source: TieredStorageError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TieredStorageError
impl !RefUnwindSafe for TieredStorageError
impl Send for TieredStorageError
impl Sync for TieredStorageError
impl Unpin for TieredStorageError
impl !UnwindSafe for TieredStorageError
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