Struct nvml_wrapper::error::NvmlErrorWithSource
source · pub struct NvmlErrorWithSource {
pub error: NvmlError,
pub source: Option<NvmlError>,
}
Expand description
An NvmlError
with an optionally present source error for chaining errors
Fields§
§error: NvmlError
§source: Option<NvmlError>
Trait Implementations§
source§impl Debug for NvmlErrorWithSource
impl Debug for NvmlErrorWithSource
source§impl Display for NvmlErrorWithSource
impl Display for NvmlErrorWithSource
source§impl Error for NvmlErrorWithSource
impl Error for NvmlErrorWithSource
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()
Auto Trait Implementations§
impl !RefUnwindSafe for NvmlErrorWithSource
impl Send for NvmlErrorWithSource
impl Sync for NvmlErrorWithSource
impl Unpin for NvmlErrorWithSource
impl !UnwindSafe for NvmlErrorWithSource
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