Skip to main content

MajorErrorCode

Enum MajorErrorCode 

Source
#[non_exhaustive]
pub enum MajorErrorCode {
Show 42 variants Args, Attr, BTree, Cache, Context, Dataset, Dataspace, Datatype, ErrorApi, EventSet, ExtensibleArray, ExternalFileList, File, FixedArray, FreeSpace, Func, Heap, Id, Internal, Io, Lib, Link, Map, NoneMajor, ObjectHeader, PageBuffering, Pipeline, Plugin, PropertyList, RTree, RefCountedString, Reference, Resource, SharedObjectHeaderMessage, SkipList, Storage, SymbolTable, TernarySearchTree, Threadsafety, VirtualFileLayer, VirtualObjectLayer, Other(hid_t),
}
Expand description

The major error code of an HDF5 error frame.

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.
§

Args

H5E_ARGS: Invalid arguments to routine

§

Attr

H5E_ATTR: Attribute

§

BTree

H5E_BTREE: B-Tree node

§

Cache

H5E_CACHE: Object cache

§

Context

H5E_CONTEXT: API Context

§

Dataset

H5E_DATASET: Dataset

§

Dataspace

H5E_DATASPACE: Dataspace

§

Datatype

H5E_DATATYPE: Datatype

§

ErrorApi

H5E_ERROR: Error API

§

EventSet

H5E_EVENTSET: Event Set

§

ExtensibleArray

H5E_EARRAY: Extensible Array

§

ExternalFileList

H5E_EFL: External file list

§

File

H5E_FILE: File accessibility

§

FixedArray

H5E_FARRAY: Fixed Array

§

FreeSpace

H5E_FSPACE: Free Space Manager

§

Func

H5E_FUNC: Function entry/exit

§

Heap

H5E_HEAP: Heap

§

Id

H5E_ID (H5E_ATOM in older HDF5): Object ID

§

Internal

H5E_INTERNAL: Internal error (too specific to document in detail)

§

Io

H5E_IO: Low-level I/O

§

Lib

H5E_LIB: General library infrastructure

H5E_LINK: Links

§

Map

H5E_MAP: Map

§

NoneMajor

H5E_NONE_MAJOR: No error

§

ObjectHeader

H5E_OHDR: Object header

§

PageBuffering

H5E_PAGEBUF: Page Buffering

§

Pipeline

H5E_PLINE: Data filters

§

Plugin

H5E_PLUGIN: Plugin for dynamically loaded library

§

PropertyList

H5E_PLIST: Property lists

§

RTree

H5E_RTREE: R-Tree spatial index

§

RefCountedString

H5E_RS: Reference Counted Strings

§

Reference

H5E_REFERENCE: References

§

Resource

H5E_RESOURCE: Resource unavailable

§

SharedObjectHeaderMessage

H5E_SOHM: Shared Object Header Messages

§

SkipList

H5E_SLIST: Skip Lists

§

Storage

H5E_STORAGE: Data storage

§

SymbolTable

H5E_SYM: Symbol table

§

TernarySearchTree

H5E_TST: Ternary Search Trees

§

Threadsafety

H5E_THREADSAFE: Threadsafety

§

VirtualFileLayer

H5E_VFL: Virtual File Layer

§

VirtualObjectLayer

H5E_VOL: Virtual Object Layer

§

Other(hid_t)

A code reported by HDF5 that this crate does not know.

The raw message id is only valid for the lifetime of the process.

Implementations§

Source§

impl MajorErrorCode

Source

pub fn from_id(id: hid_t) -> Self

Resolves a raw HDF5 message id, or Other if unknown.

Source

pub fn name(self) -> Option<&'static str>

The C identifier, e.g. "H5E_CANTOPENFILE", as spelled by the linked HDF5.

None only for Other.

Source

pub fn description(self) -> Option<&'static str>

The description HDF5 documents for this code, as worded by the linked HDF5.

None only for Other.

Source

pub fn all() -> &'static [Self]

Every code this crate knows, including any the linked HDF5 cannot report.

Trait Implementations§

Source§

impl Clone for MajorErrorCode

Source§

fn clone(&self) -> MajorErrorCode

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 Copy for MajorErrorCode

Source§

impl Debug for MajorErrorCode

Source§

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

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

impl Display for MajorErrorCode

Source§

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

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

impl Eq for MajorErrorCode

Source§

impl Hash for MajorErrorCode

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for MajorErrorCode

Source§

fn eq(&self, other: &MajorErrorCode) -> 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 MajorErrorCode

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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

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> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

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 = 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.