Enum Error

Source
#[non_exhaustive]
pub enum Error {
Show 36 variants Failure = -1, Stream = -2, Data = -3, MemoryAlloc = -4, ReadBuffer = -5, WriteBuffer = -6, CodecSupport = -7, CodecParam = -8, CodecDict = -9, VersionSupport = -10, InvalidHeader = -11, InvalidParam = -12, FileRead = -13, FileWrite = -14, FileOpen = -15, NotFound = -16, RunLength = -17, FilterPipeline = -18, ChunkInsert = -19, ChunkAppend = -20, ChunkUpdate = -21, TwoGbLimit = -22, SchunkCopy = -23, FrameType = -24, FileTruncate = -25, ThreadCreate = -26, Postfilter = -27, FrameSpecial = -28, SChunkSpecial = -29, PluginIO = -30, FileRemove = -31, NullPointer = -32, InvalidIndex = -33, MetalayerNotFound = -34, MaxBufsizeExceeded = -35, Tuner = -36,
}
Expand description

Error codes for the blosc2 library.

Note that the error are codes that do not contain any additional information. For debugging purposes, you can set the environment variable BLOSC_TRACE to get many more trace prints that can help you understand what went wrong.

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

Failure = -1

Generic failure

§

Stream = -2

Bad stream

§

Data = -3

Invalid data

§

MemoryAlloc = -4

Memory alloc/realloc failure

§

ReadBuffer = -5

Not enough space to read

§

WriteBuffer = -6

Not enough space to write

§

CodecSupport = -7

Codec not supported

§

CodecParam = -8

Invalid parameter supplied to codec

§

CodecDict = -9

Codec dictionary error

§

VersionSupport = -10

Version not supported

§

InvalidHeader = -11

Invalid value in header

§

InvalidParam = -12

Invalid parameter supplied to function

§

FileRead = -13

File read failure

§

FileWrite = -14

File write failure

§

FileOpen = -15

File open failure

§

NotFound = -16

Not found

§

RunLength = -17

Bad run length encoding

§

FilterPipeline = -18

Filter pipeline error

§

ChunkInsert = -19

Chunk insert failure

§

ChunkAppend = -20

Chunk append failure

§

ChunkUpdate = -21

Chunk update failure

§

TwoGbLimit = -22

Sizes larger than 2gb not supported

§

SchunkCopy = -23

Super-chunk copy failure

§

FrameType = -24

Wrong type for frame

§

FileTruncate = -25

File truncate failure

§

ThreadCreate = -26

Thread or thread context creation failure

§

Postfilter = -27

Postfilter failure

§

FrameSpecial = -28

Special frame failure

§

SChunkSpecial = -29

Special super-chunk failure

§

PluginIO = -30

IO plugin error

§

FileRemove = -31

Remove file failure

§

NullPointer = -32

Pointer is null

§

InvalidIndex = -33

Invalid index

§

MetalayerNotFound = -34

Metalayer has not been found

§

MaxBufsizeExceeded = -35

Max buffer size exceeded

§

Tuner = -36

Tuner failure

Trait Implementations§

Source§

impl Debug for Error

Source§

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

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

impl Display for Error

Source§

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

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

impl Error for Error

1.30.0 · 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)
Provides type-based access to context intended for error reports. Read more

Auto Trait Implementations§

§

impl Freeze for Error

§

impl RefUnwindSafe for Error

§

impl Send for Error

§

impl Sync for Error

§

impl Unpin for Error

§

impl UnwindSafe for Error

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.

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.