Skip to main content

FormatError

Enum FormatError 

Source
pub enum FormatError {
Show 61 variants SignatureNotFound, UnsupportedVersion(u8), UnexpectedEof { expected: usize, available: usize, }, InvalidOffsetSize(u8), InvalidLengthSize(u8), InvalidObjectHeaderSignature, InvalidObjectHeaderVersion(u8), UnsupportedMessage(u16), InvalidDatatypeClass(u8), InvalidDatatypeVersion { class: u8, version: u8, }, InvalidStringPadding(u8), InvalidCharacterSet(u8), InvalidByteOrder(u8), InvalidReferenceType(u8), InvalidDataspaceVersion(u8), InvalidDataspaceType(u8), InvalidLayoutVersion(u8), InvalidLayoutClass(u8), NoDataAllocated, TypeMismatch { expected: &'static str, actual: &'static str, }, DataSizeMismatch { expected: usize, actual: usize, }, InvalidLocalHeapSignature, InvalidLocalHeapVersion(u8), InvalidBTreeSignature, InvalidBTreeNodeType(u8), InvalidSymbolTableNodeSignature, InvalidSymbolTableNodeVersion(u8), PathNotFound(String), InvalidLinkVersion(u8), InvalidLinkType(u8), InvalidLinkInfoVersion(u8), InvalidGroupInfoVersion(u8), InvalidBTreeV2Signature, InvalidBTreeV2Version(u8), InvalidFractalHeapSignature, InvalidFractalHeapVersion(u8), InvalidHeapIdType(u8), InvalidAttributeVersion(u8), InvalidAttributeInfoVersion(u8), InvalidSharedMessageVersion(u8), InvalidSohmTableVersion(u8), InvalidSohmTableSignature, InvalidSohmListSignature, InvalidGlobalHeapSignature, InvalidGlobalHeapVersion(u8), GlobalHeapObjectNotFound { collection_address: u64, index: u16, }, VlDataError(String), SerializationError(String), DatasetMissingData, DatasetMissingShape, InvalidFilterPipelineVersion(u8), UnsupportedFilter(u16), FilterError(String), DecompressionError(String), CompressionError(String), Fletcher32Mismatch { expected: u32, computed: u32, }, ChunkedReadError(String), ChunkAssemblyError(String), ChecksumMismatch { expected: u32, computed: u32, }, NestingDepthExceeded, DuplicateDatasetName(String),
}
Expand description

Errors that can occur when parsing HDF5 binary format structures.

Variants§

§

SignatureNotFound

The HDF5 magic signature was not found at any valid offset.

§

UnsupportedVersion(u8)

The superblock version is not supported.

§

UnexpectedEof

Unexpected end of data.

Fields

§expected: usize

Number of bytes expected.

§available: usize

Number of bytes actually available.

§

InvalidOffsetSize(u8)

Invalid offset size (must be 2, 4, or 8).

§

InvalidLengthSize(u8)

Invalid length size (must be 2, 4, or 8).

§

InvalidObjectHeaderSignature

Invalid object header signature.

§

InvalidObjectHeaderVersion(u8)

Invalid object header version.

§

UnsupportedMessage(u16)

Unknown message type that is marked as must-understand.

§

InvalidDatatypeClass(u8)

Invalid datatype class.

§

InvalidDatatypeVersion

Invalid datatype version for a given class.

Fields

§class: u8

The type class.

§version: u8

The version found.

§

InvalidStringPadding(u8)

Invalid string padding type.

§

InvalidCharacterSet(u8)

Invalid character set.

§

InvalidByteOrder(u8)

Invalid byte order.

§

InvalidReferenceType(u8)

Invalid reference type.

§

InvalidDataspaceVersion(u8)

Invalid dataspace version.

§

InvalidDataspaceType(u8)

Invalid dataspace type.

§

InvalidLayoutVersion(u8)

Invalid data layout version.

§

InvalidLayoutClass(u8)

Invalid data layout class.

§

NoDataAllocated

No data allocated for contiguous layout.

§

TypeMismatch

Type mismatch when reading data.

Fields

§expected: &'static str

Expected type description.

§actual: &'static str

Actual type description.

§

DataSizeMismatch

Data size mismatch.

Fields

§expected: usize

Expected size in bytes.

§actual: usize

Actual size in bytes.

§

InvalidLocalHeapSignature

Invalid local heap signature.

§

InvalidLocalHeapVersion(u8)

Invalid local heap version.

§

InvalidBTreeSignature

Invalid B-tree v1 signature.

§

InvalidBTreeNodeType(u8)

Invalid B-tree node type.

§

InvalidSymbolTableNodeSignature

Invalid symbol table node signature.

§

InvalidSymbolTableNodeVersion(u8)

Invalid symbol table node version.

§

PathNotFound(String)

Path not found during group traversal.

§

InvalidLinkVersion(u8)

Invalid Link message version.

§

InvalidLinkType(u8)

Invalid link type code.

§

InvalidLinkInfoVersion(u8)

Invalid Link Info message version.

§

InvalidGroupInfoVersion(u8)

Invalid Group Info message version.

§

InvalidBTreeV2Signature

Invalid B-tree v2 signature.

§

InvalidBTreeV2Version(u8)

Invalid B-tree v2 version.

§

InvalidFractalHeapSignature

Invalid fractal heap signature.

§

InvalidFractalHeapVersion(u8)

Invalid fractal heap version.

§

InvalidHeapIdType(u8)

Invalid heap ID type.

§

InvalidAttributeVersion(u8)

Invalid attribute message version.

§

InvalidAttributeInfoVersion(u8)

Invalid Attribute Info message version.

§

InvalidSharedMessageVersion(u8)

Invalid shared message version.

§

InvalidSohmTableVersion(u8)

Invalid SOHM table version.

§

InvalidSohmTableSignature

Invalid SOHM table signature (expected “SMTB”).

§

InvalidSohmListSignature

Invalid SOHM list signature (expected “SMLI”).

§

InvalidGlobalHeapSignature

Invalid global heap collection signature.

§

InvalidGlobalHeapVersion(u8)

Invalid global heap version.

§

GlobalHeapObjectNotFound

Global heap object not found.

Fields

§collection_address: u64

Address of the collection.

§index: u16

Index that was not found.

§

VlDataError(String)

Variable-length data error.

§

SerializationError(String)

Serialization error.

§

DatasetMissingData

Dataset is missing data.

§

DatasetMissingShape

Dataset is missing shape.

§

InvalidFilterPipelineVersion(u8)

Invalid filter pipeline version.

§

UnsupportedFilter(u16)

Unsupported filter ID.

§

FilterError(String)

Filter processing error.

§

DecompressionError(String)

Decompression error.

§

CompressionError(String)

Compression error.

§

Fletcher32Mismatch

Fletcher32 checksum mismatch.

Fields

§expected: u32

Expected checksum.

§computed: u32

Computed checksum.

§

ChunkedReadError(String)

Chunked dataset read error.

§

ChunkAssemblyError(String)

Chunk assembly error.

§

ChecksumMismatch

CRC32C checksum mismatch.

Fields

§expected: u32

The checksum stored in the file.

§computed: u32

The checksum we computed.

§

NestingDepthExceeded

Maximum nesting/continuation depth exceeded (malformed data protection).

§

DuplicateDatasetName(String)

Duplicate dataset name detected during parallel metadata merge.

Trait Implementations§

Source§

impl Clone for FormatError

Source§

fn clone(&self) -> FormatError

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for FormatError

Source§

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

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

impl Display for FormatError

Source§

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

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

impl Eq for FormatError

Source§

impl Error for FormatError

Available on crate feature std only.
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
Source§

impl PartialEq for FormatError

Source§

fn eq(&self, other: &FormatError) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for FormatError

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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 = !

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

fn try_from(value: U) -> Result<T, !>

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.