pub enum BaracudaError {
Status {
library: &'static str,
name: &'static str,
description: &'static str,
code: i32,
},
Loader(LoaderError),
FeatureNotSupported {
api: &'static str,
since: CudaVersion,
},
Context {
context: &'static str,
},
}Expand description
A library-erased error, useful at process boundaries where the caller doesn’t want to parameterize over every NVIDIA library’s status enum.
Variants§
Status
A status code from any NVIDIA library.
Loader(LoaderError)
The dynamic loader failed.
FeatureNotSupported
The requested API is newer than the installed driver supports.
Context
For sources that want to attach a path or other context (e.g. a missing PTX file).
Trait Implementations§
Source§impl Debug for BaracudaError
impl Debug for BaracudaError
Source§impl Display for BaracudaError
impl Display for BaracudaError
Source§impl Error for BaracudaError
impl Error for BaracudaError
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<S> From<Error<S>> for BaracudaError
impl<S> From<Error<S>> for BaracudaError
Source§impl From<LoaderError> for BaracudaError
impl From<LoaderError> for BaracudaError
Source§fn from(source: LoaderError) -> Self
fn from(source: LoaderError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BaracudaError
impl !RefUnwindSafe for BaracudaError
impl Send for BaracudaError
impl Sync for BaracudaError
impl Unpin for BaracudaError
impl UnsafeUnpin for BaracudaError
impl !UnwindSafe for BaracudaError
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