reth_nippy_jar

Enum NippyJarError

Source
pub enum NippyJarError {
Show 20 variants Internal(Box<dyn Error + Send + Sync>), Disconnect(Error), FileSystem(FsPathError), Custom(String), Bincode(Box<ErrorKind>), EliasFano(Error), CompressorNotReady, DecompressorNotReady, ColumnLenMismatch(usize, usize), UnexpectedMissingValue(u64, u64), OffsetSizeTooBig { offset_size: u8, }, OffsetSizeTooSmall { offset_size: u8, }, OffsetOutOfBounds { index: usize, }, OutputTooSmall, DictionaryNotLoaded, CompressorNotAllowed, InvalidPruning(u64, u64), FrozenJar, InconsistentState, MissingFile(PathBuf),
}
Expand description

Errors associated with crate::NippyJar.

Variants§

§

Internal(Box<dyn Error + Send + Sync>)

An internal error occurred, wrapping any type of error.

§

Disconnect(Error)

An error occurred while disconnecting, wrapping a standard I/O error.

§

FileSystem(FsPathError)

An error related to the file system occurred, wrapping a file system path error.

§

Custom(String)

A custom error message provided by the user.

§

Bincode(Box<ErrorKind>)

An error occurred during serialization/deserialization with Bincode.

§

EliasFano(Error)

An error occurred with the Elias-Fano encoding/decoding process.

§

CompressorNotReady

Compression was enabled, but the compressor is not ready yet.

§

DecompressorNotReady

Decompression was enabled, but the decompressor is not ready yet.

§

ColumnLenMismatch(usize, usize)

The number of columns does not match the expected length.

§

UnexpectedMissingValue(u64, u64)

An unexpected missing value was encountered at a specific row and column.

§

OffsetSizeTooBig

The size of an offset exceeds the maximum allowed size of 8 bytes.

Fields

§offset_size: u8

The read offset size in number of bytes.

§

OffsetSizeTooSmall

The size of an offset is less than the minimum allowed size of 1 byte.

Fields

§offset_size: u8

The read offset size in number of bytes.

§

OffsetOutOfBounds

An attempt was made to read an offset that is out of bounds.

Fields

§index: usize

The index of the offset that was being read.

§

OutputTooSmall

The output buffer is too small for the compression or decompression operation.

§

DictionaryNotLoaded

A dictionary is not loaded when it is required for operations.

§

CompressorNotAllowed

It’s not possible to generate a compressor after loading a dictionary.

§

InvalidPruning(u64, u64)

The number of offsets is smaller than the requested prune size.

§

FrozenJar

The jar has been frozen and cannot be modified.

§

InconsistentState

The file is in an inconsistent state.

§

MissingFile(PathBuf)

A specified file is missing.

Trait Implementations§

Source§

impl Debug for NippyJarError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for NippyJarError

Source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for NippyJarError

Source§

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

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access #99301)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<Box<ErrorKind>> for NippyJarError

Source§

fn from(source: Box<ErrorKind>) -> Self

Converts to this type from the input type.
Source§

impl From<Box<dyn Error + Send + Sync>> for NippyJarError

Source§

fn from(source: Box<dyn Error + Send + Sync>) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for NippyJarError

Source§

fn from(source: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for NippyJarError

Source§

fn from(source: Error) -> Self

Converts to this type from the input type.
Source§

impl From<FsPathError> for NippyJarError

Source§

fn from(source: FsPathError) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more

Layout§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.

Size: 56 bytes

Size for each variant:

  • Internal: 24 bytes
  • Disconnect: 16 bytes
  • FileSystem: 56 bytes
  • Custom: 32 bytes
  • Bincode: 16 bytes
  • EliasFano: 16 bytes
  • CompressorNotReady: 0 bytes
  • DecompressorNotReady: 0 bytes
  • ColumnLenMismatch: 24 bytes
  • UnexpectedMissingValue: 24 bytes
  • OffsetSizeTooBig: 9 bytes
  • OffsetSizeTooSmall: 9 bytes
  • OffsetOutOfBounds: 16 bytes
  • OutputTooSmall: 0 bytes
  • DictionaryNotLoaded: 0 bytes
  • CompressorNotAllowed: 0 bytes
  • InvalidPruning: 24 bytes
  • FrozenJar: 0 bytes
  • InconsistentState: 0 bytes
  • MissingFile: 32 bytes