#[non_exhaustive]pub enum CuestError {
Status {
status: CuestStatus,
context: &'static str,
},
Cuda(DriverError),
Rust(String),
UnsupportedVersion {
needed: (u32, u32, u32),
found: (u32, u32, u32),
},
}Expand description
Error type for all cuEST wrapper operations.
This enum is #[non_exhaustive]: new variants may be added in patch
releases, so downstream matches must include a wildcard (_) arm.
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.
Status
A cuEST C API call returned a non-success status code.
context names the failing call (or wrapper-level operation).
Fields
§
status: CuestStatusThe status code returned by cuEST.
Cuda(DriverError)
A CUDA operation performed through cudarc failed.
Rust(String)
An error originating in this wrapper: invalid arguments (sizes, mismatched streams, unknown enum values), parse failures, etc.
UnsupportedVersion
The loaded cuEST library version does not match the C API these bindings were generated from.
needed is the (major, minor, patch) version of the bindings, found
the version reported by the loaded library.
Trait Implementations§
Source§impl Debug for CuestError
impl Debug for CuestError
Source§impl Display for CuestError
impl Display for CuestError
Source§impl Error for CuestError
impl Error for CuestError
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()
Source§impl From<DriverError> for CuestError
impl From<DriverError> for CuestError
Source§fn from(err: DriverError) -> Self
fn from(err: DriverError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CuestError
impl RefUnwindSafe for CuestError
impl Send for CuestError
impl Sync for CuestError
impl Unpin for CuestError
impl UnsafeUnpin for CuestError
impl UnwindSafe for CuestError
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