#[non_exhaustive]pub enum ErrorKind {
Unexpected,
InvalidHandle,
OutOfMemory,
InvalidInput,
IoError,
InvalidState,
NotImplemented,
UnsupportedType,
NonConvergence,
}Expand description
Categorisation of cuGraph and library-level errors.
Each variant describes what the caller should do. It does not name the
dependency that failed. Variants that originate in the raw C API map to the
corresponding CUGRAPH_* error codes; library-only variants cover Rust-side
interop, lifecycle, and I/O boundaries.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Unexpected
An unexpected or unknown error occurred (CUGRAPH_UNKNOWN_ERROR).
InvalidHandle
The resource handle is invalid (CUGRAPH_INVALID_HANDLE).
OutOfMemory
GPU memory allocation failed (CUGRAPH_ALLOC_ERROR).
InvalidInput
An input argument was invalid (CUGRAPH_INVALID_INPUT).
IoError
An external I/O operation failed.
InvalidState
A result invariant, lifecycle contract, or state transition failed (CUGRAPH_INVALID_STATE).
NotImplemented
The requested operation is not implemented (CUGRAPH_NOT_IMPLEMENTED).
UnsupportedType
The combination of types is not supported (CUGRAPH_UNSUPPORTED_TYPE_COMBINATION).
NonConvergence
An iterative algorithm reached its configured iteration bound.
Implementations§
Source§impl ErrorKind
impl ErrorKind
Sourcepub fn from_error_code(code: cugraph_error_code_t) -> Self
pub fn from_error_code(code: cugraph_error_code_t) -> Self
Map a C error code to an ErrorKind.
Sourcepub fn from_error_code_raw(raw: u32) -> Self
pub fn from_error_code_raw(raw: u32) -> Self
Map from a raw C error-code integer value.
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§
impl<T> Allocation for T
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,
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.