pub enum Error<S>{
Status {
status: S,
},
Loader(LoaderError),
FeatureNotSupported {
api: &'static str,
since: CudaVersion,
},
}Expand description
A generic error enum for any safe wrapper crate over a single NVIDIA
library. Safe crates may use this directly or compose their own richer
Error enum out of its variants.
Variants§
Status
The library returned a non-success status code.
Fields
§
status: SLoader(LoaderError)
The dynamic loader failed.
FeatureNotSupported
The requested API is newer than the installed driver supports.
Implementations§
Trait Implementations§
Source§impl<S> Error for Error<S>
impl<S> Error for Error<S>
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<S> From<LoaderError> for Error<S>
impl<S> From<LoaderError> for Error<S>
Source§fn from(source: LoaderError) -> Self
fn from(source: LoaderError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<S> Freeze for Error<S>where
S: Freeze,
impl<S> !RefUnwindSafe for Error<S>
impl<S> Send for Error<S>
impl<S> Sync for Error<S>
impl<S> Unpin for Error<S>where
S: Unpin,
impl<S> UnsafeUnpin for Error<S>where
S: UnsafeUnpin,
impl<S> !UnwindSafe for Error<S>
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