pub struct CudaError {
pub code: i32,
pub name: String,
pub message: String,
}
Expand description
A CUDA error with code, name, and message
Fields§
§code: i32
§name: String
§message: String
Implementations§
Trait Implementations§
Source§impl Error for CudaError
impl Error for CudaError
1.30.0 · 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<CudaError> for KernelError
impl From<CudaError> for KernelError
Source§impl From<CudaError> for MemCopyError
impl From<CudaError> for MemCopyError
Auto Trait Implementations§
impl Freeze for CudaError
impl RefUnwindSafe for CudaError
impl Send for CudaError
impl Sync for CudaError
impl Unpin for CudaError
impl UnwindSafe for CudaError
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