#[non_exhaustive]pub enum IoError {
FileNotFound(String, Error),
NotADirectory(String),
TiffDecode(String),
DimensionMismatch {
expected: (u32, u32),
got: (u32, u32),
frame: usize,
},
ShapeMismatch(String),
NoMatchingFiles {
directory: String,
pattern: String,
},
InvalidParameter(String),
TiffEncode(String),
WriteError(String),
Hdf5Error(String),
}Expand description
Errors that can occur during I/O operations.
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.
FileNotFound(String, Error)
File not found or could not be opened.
NotADirectory(String)
Path is not a directory.
TiffDecode(String)
TIFF decoding error.
DimensionMismatch
Frame dimensions do not match.
ShapeMismatch(String)
Array shape error.
NoMatchingFiles
No files matched the given pattern.
InvalidParameter(String)
Invalid parameter.
TiffEncode(String)
TIFF encoding/writing error.
WriteError(String)
Generic file write error (not TIFF-specific).
Hdf5Error(String)
HDF5 format or access error.
Trait Implementations§
Source§impl Error for IoError
impl Error for IoError
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()
Auto Trait Implementations§
impl Freeze for IoError
impl !RefUnwindSafe for IoError
impl Send for IoError
impl Sync for IoError
impl Unpin for IoError
impl UnsafeUnpin for IoError
impl !UnwindSafe for IoError
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.