pub enum ErrorCategory {
Io,
UnknownFormat,
Parse,
Data,
Output,
}Expand description
Coarse classification of an Error, for callers that map onto their own
taxonomy (the Python layer’s exception subclasses, C ABI status codes, a
CLI exit code). Distinguishing “the input file is bad” from “the operation
can’t run on this otherwise-valid case” is the split callers actually branch
on, and it’s a property of the error, not of the binding that surfaces it.
Deliberately not #[non_exhaustive] (unlike Error): a category-mapping
match should fail to compile when a category is added, so every binding is
forced to decide how to surface it.
Variants§
Io
Underlying I/O failure reading or writing a file.
UnknownFormat
The requested format is unknown or can’t be inferred from the path.
Parse
The input is malformed or unparseable.
Data
A well-formed case can’t satisfy the requested operation.
Output
An output serialization step (matrix-market, Parquet) failed.
Trait Implementations§
Source§impl Clone for ErrorCategory
impl Clone for ErrorCategory
Source§fn clone(&self) -> ErrorCategory
fn clone(&self) -> ErrorCategory
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ErrorCategory
impl Debug for ErrorCategory
Source§impl PartialEq for ErrorCategory
impl PartialEq for ErrorCategory
impl Copy for ErrorCategory
impl Eq for ErrorCategory
impl StructuralPartialEq for ErrorCategory
Auto Trait Implementations§
impl Freeze for ErrorCategory
impl RefUnwindSafe for ErrorCategory
impl Send for ErrorCategory
impl Sync for ErrorCategory
impl Unpin for ErrorCategory
impl UnsafeUnpin for ErrorCategory
impl UnwindSafe for ErrorCategory
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.