pub enum GpuMonitorError {
NvmlInit(String),
NvmlQuery(String),
GpuOutOfRange(usize),
Unsupported(&'static str),
}Expand description
Errors that can occur when constructing or using a GpuMonitor.
Variants§
NvmlInit(String)
NVML could not be initialised (driver missing, permission denied, etc.).
NvmlQuery(String)
A query against the NVML backend failed.
GpuOutOfRange(usize)
A GPU index was requested that does not exist on this node.
Unsupported(&'static str)
The requested feature is not supported on this platform.
Trait Implementations§
Source§impl Debug for GpuMonitorError
impl Debug for GpuMonitorError
Source§impl Display for GpuMonitorError
impl Display for GpuMonitorError
Source§impl Error for GpuMonitorError
impl Error for GpuMonitorError
1.30.0 · 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()
Auto Trait Implementations§
impl Freeze for GpuMonitorError
impl RefUnwindSafe for GpuMonitorError
impl Send for GpuMonitorError
impl Sync for GpuMonitorError
impl Unpin for GpuMonitorError
impl UnsafeUnpin for GpuMonitorError
impl UnwindSafe for GpuMonitorError
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