pub enum DataError {
Dataset(String),
IndexOutOfBounds {
index: usize,
len: usize,
},
WorkerPanicked {
worker_id: usize,
stage: &'static str,
},
CollatePanicked {
worker_id: usize,
},
InvalidBatch(String),
WorkerDisconnected,
Timeout {
duration: Duration,
},
InvalidInput(String),
}Expand description
A recoverable data-pipeline failure.
This is the crate’s typed error: iteration, collation, and transform failures return it instead of an untyped stringly error, so callers can match on the failure category rather than parse text.
Variants§
Dataset(String)
The dataset reported malformed or otherwise invalid data.
IndexOutOfBounds
A requested index was outside the dataset’s declared range.
WorkerPanicked
A worker caught a panic while reading a sample.
Fields
CollatePanicked
A worker caught a panic while collating a batch.
InvalidBatch(String)
The samples could not be combined into a batch.
WorkerDisconnected
A worker stopped unexpectedly before completing the epoch.
Timeout
The configured worker receive timeout elapsed.
InvalidInput(String)
A transform or caller-supplied input violated its declared contract.
Trait Implementations§
impl Eq for DataError
Source§impl Error for DataError
impl Error for DataError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
impl StructuralPartialEq for DataError
Auto Trait Implementations§
impl Freeze for DataError
impl RefUnwindSafe for DataError
impl Send for DataError
impl Sync for DataError
impl Unpin for DataError
impl UnsafeUnpin for DataError
impl UnwindSafe for DataError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DTypeEq<T> for T
impl<T> DTypeEq<T> for T
Source§const DTYPES_EQUAL: bool = true
const DTYPES_EQUAL: bool = true
A type is always dtype-equal to itself.
Source§const ASSERT_DTYPES_MATCH: ()
const ASSERT_DTYPES_MATCH: ()
Always passes, since T: DTypeEq<T> only reaches this impl when
the two types genuinely match.
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
impl<N> SameCount<N> for N
Source§impl<S> ShapeEq<S> for S
impl<S> ShapeEq<S> for S
Source§const SHAPES_EQUAL: bool = true
const SHAPES_EQUAL: bool = true
A type is always shape-equal to itself.
Source§const ASSERT_SHAPES_MATCH: ()
const ASSERT_SHAPES_MATCH: ()
Always passes, since S: ShapeEq<S> only reaches this impl when
the two types genuinely match.