Enum Blosc2Error

Source
#[repr(i32)]
pub enum Blosc2Error {
Show 34 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,
}
Expand description

Possible errors arising from Blosc2 library

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

Trait Implementations§

Source§

impl Debug for Blosc2Error

Source§

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

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

impl Display for Blosc2Error

Source§

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

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

impl From<Blosc2Error> for Error

Source§

fn from(err: Blosc2Error) -> Self

Converts to this type from the input type.
Source§

impl From<i32> for Blosc2Error

Source§

fn from(code: i32) -> 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.

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.