pub enum ErrorKind {
Show 34 variants
Computation,
Domain,
Dispatch,
Convergence,
Dimension,
Shape,
Index,
Value,
Type,
NotImplemented,
Implementation,
Memory,
Allocation,
Config,
InvalidArgument,
InvalidInput,
Permission,
Validation,
InvalidState,
Jit,
Json,
Io,
Scheduler,
Timeout,
Compression,
InvalidShape,
Device,
Mutex,
Thread,
Stream,
EndOfStream,
Resource,
Communication,
Security,
}Expand description
Lightweight classification of CoreError variants.
Every CoreError variant maps to exactly one ErrorKind.
This enum is Copy and suitable for use in match arms, hash maps, etc.
Variants§
Computation
Generic computation error
Domain
Input outside valid mathematical domain
Dispatch
Array protocol dispatch failure
Convergence
Algorithm did not converge
Dimension
Array dimension mismatch
Shape
Array shape incompatibility
Index
Index out of bounds
Value
Invalid value
Type
Type mismatch
NotImplemented
Feature not implemented
Implementation
Partial implementation
Memory
Memory allocation failure
Allocation
Allocation-specific error
Config
Configuration error
InvalidArgument
Invalid argument
InvalidInput
Invalid input
Permission
Permission error
Validation
Validation failure
InvalidState
Invalid object state
Jit
JIT compilation error
Json
JSON error
Io
I/O error
Scheduler
Scheduler error
Timeout
Timeout error
Compression
Compression error
InvalidShape
Invalid array shape
Device
GPU/device error
Mutex
Mutex/lock error
Thread
Thread error
Stream
Stream error
EndOfStream
End-of-stream
Resource
Resource error
Communication
Communication error
Security
Security error
Implementations§
Source§impl ErrorKind
impl ErrorKind
Whether this error kind is related to array shapes or dimensions.
Whether this error kind is related to resource exhaustion.
Whether this error kind is related to I/O or communication.
Whether this error kind is related to concurrency.
Sourcepub const fn is_programming_error(&self) -> bool
pub const fn is_programming_error(&self) -> bool
Whether this error kind indicates a programming error (e.g., invalid argument).
Sourcepub const fn is_retryable(&self) -> bool
pub const fn is_retryable(&self) -> bool
Whether this error is typically retryable.
Trait Implementations§
impl Copy for ErrorKind
impl Eq for ErrorKind
impl StructuralPartialEq for ErrorKind
Auto Trait Implementations§
impl Freeze for ErrorKind
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnsafeUnpin for ErrorKind
impl UnwindSafe for ErrorKind
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<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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreimpl<T> Node for T
Source§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.