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.
OffsetSizeTooSmall
The size of an offset is less than the minimum allowed size of 1 byte.
OffsetOutOfBounds
An attempt was made to read an offset that is out of bounds.
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
impl Debug for NippyJarError
Source§impl Display for NippyJarError
impl Display for NippyJarError
Source§impl Error for NippyJarError
impl Error for NippyJarError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<Error> for NippyJarError
impl From<Error> for NippyJarError
Source§impl From<Error> for NippyJarError
impl From<Error> for NippyJarError
Auto Trait Implementations§
impl Freeze for NippyJarError
impl !RefUnwindSafe for NippyJarError
impl Send for NippyJarError
impl Sync for NippyJarError
impl Unpin for NippyJarError
impl !UnwindSafe for NippyJarError
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
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 bytesDisconnect
: 16 bytesFileSystem
: 56 bytesCustom
: 32 bytesBincode
: 16 bytesEliasFano
: 16 bytesCompressorNotReady
: 0 bytesDecompressorNotReady
: 0 bytesColumnLenMismatch
: 24 bytesUnexpectedMissingValue
: 24 bytesOffsetSizeTooBig
: 9 bytesOffsetSizeTooSmall
: 9 bytesOffsetOutOfBounds
: 16 bytesOutputTooSmall
: 0 bytesDictionaryNotLoaded
: 0 bytesCompressorNotAllowed
: 0 bytesInvalidPruning
: 24 bytesFrozenJar
: 0 bytesInconsistentState
: 0 bytesMissingFile
: 32 bytes