pub trait CudaStatus:
Copy
+ Debug
+ Eq {
// Required methods
fn code(self) -> i32;
fn name(self) -> &'static str;
fn description(self) -> &'static str;
fn is_success(self) -> bool;
fn library(self) -> &'static str;
}Expand description
A status code returned by an NVIDIA library call.
Required Methods§
Sourcefn name(self) -> &'static str
fn name(self) -> &'static str
The stable symbol name of this status
(e.g. "CUDA_SUCCESS", "CUBLAS_STATUS_NOT_INITIALIZED").
Sourcefn description(self) -> &'static str
fn description(self) -> &'static str
A human-readable description of the status.
Implementations should prefer the strings returned by the library
itself (cuGetErrorString, cudnnGetErrorString, …) when available.
Sourcefn is_success(self) -> bool
fn is_success(self) -> bool
true if this status represents successful completion.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.