[−][src]Enum nvml_wrapper::error::NvmlError
Variants
Utf8Error(Utf8Error)NulError(NulError)LibloadingError(Error)FailedToLoadSymbol(String)A function symbol failed to load.
This variant is constructed with a textual description of a
libloading::Error. The error variant itself can't be provided because we're
unable to take ownership of the error when attempting to use a symbol, and
libloading::Error doesn't impl Clone.
IncorrectBits(Bits)UnexpectedVariant(u32)An unexpected enum variant was encountered.
This error is specific to this Rust wrapper. It is used to represent the possibility that an enum variant that is not defined within the Rust bindings can be returned from a C call.
The single field contains the value that could not be mapped to a defined enum variant.
See this issue.
deprecated in NVML (multiple initializations now allowed via refcounting)
An input argument is not large enough.
The single field is the size required for a successful call (if Some)
and None if unknown.
Trait Implementations
impl Debug for NvmlError[src]
impl Display for NvmlError[src]
impl Error for NvmlError[src]
pub fn source(&self) -> Option<&(dyn Error + 'static)>[src]
pub fn backtrace(&self) -> Option<&Backtrace>[src]
pub fn description(&self) -> &str1.0.0[src]
pub fn cause(&self) -> Option<&dyn Error>1.0.0[src]
impl From<Error> for NvmlError[src]
impl From<NulError> for NvmlError[src]
impl From<NvmlError> for NvmlErrorWithSource[src]
impl From<Utf8Error> for NvmlError[src]
Auto Trait Implementations
impl !RefUnwindSafe for NvmlError
impl Send for NvmlError
impl Sync for NvmlError
impl Unpin for NvmlError
impl !UnwindSafe for NvmlError
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,