Struct cudarc::driver::result::DriverError
source · pub struct DriverError(pub CUresult);
Expand description
Wrapper around sys::CUresult. See nvidia’s CUresult docs
Tuple Fields§
§0: CUresult
Implementations§
source§impl DriverError
impl DriverError
sourcepub fn error_name(&self) -> Result<&CStr, DriverError>
pub fn error_name(&self) -> Result<&CStr, DriverError>
Gets the name for this error.
sourcepub fn error_string(&self) -> Result<&CStr, DriverError>
pub fn error_string(&self) -> Result<&CStr, DriverError>
Gets the error string for this error.
Trait Implementations§
source§impl Clone for DriverError
impl Clone for DriverError
source§fn clone(&self) -> DriverError
fn clone(&self) -> DriverError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DriverError
impl Debug for DriverError
source§impl Display for DriverError
impl Display for DriverError
source§impl Error for DriverError
impl Error for DriverError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 PartialEq<DriverError> for DriverError
impl PartialEq<DriverError> for DriverError
source§fn eq(&self, other: &DriverError) -> bool
fn eq(&self, other: &DriverError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for DriverError
impl Eq for DriverError
impl StructuralEq for DriverError
impl StructuralPartialEq for DriverError
Auto Trait Implementations§
impl RefUnwindSafe for DriverError
impl Send for DriverError
impl Sync for DriverError
impl Unpin for DriverError
impl UnwindSafe for DriverError
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