pub enum Hdf5Error {
Io(Error),
Format(FormatError),
IoLayer(IoError),
NotFound(String),
InvalidState(String),
TypeMismatch(String),
}Expand description
Errors that can occur when using the HDF5 public API.
Variants§
Io(Error)
An I/O error from the operating system.
Format(FormatError)
A low-level format encoding/decoding error.
IoLayer(IoError)
An I/O-layer error from hdf5-io.
NotFound(String)
A requested object (dataset, group, attribute) was not found.
The string contains the name of the missing object (e.g., dataset name).
InvalidState(String)
The file or object is in an invalid state for the requested operation.
TypeMismatch(String)
A type mismatch between the Rust type and the HDF5 datatype.
Trait Implementations§
Source§impl Error for Hdf5Error
impl Error for Hdf5Error
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
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
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<FormatError> for Hdf5Error
impl From<FormatError> for Hdf5Error
Source§fn from(e: FormatError) -> Self
fn from(e: FormatError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Hdf5Error
impl !RefUnwindSafe for Hdf5Error
impl Send for Hdf5Error
impl Sync for Hdf5Error
impl Unpin for Hdf5Error
impl UnsafeUnpin for Hdf5Error
impl !UnwindSafe for Hdf5Error
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
Mutably borrows from an owned value. Read more