pub struct NvmlLibrary { /* private fields */ }Expand description
2026-09-26: An opened libnvidia-ml and the table resolved from it. The
library stays loaded as long as this value lives.
Implementations§
Source§impl NvmlLibrary
impl NvmlLibrary
Sourcepub fn open() -> Result<Self, NvmlUnavailable>
pub fn open() -> Result<Self, NvmlUnavailable>
2026-09-26: open_from(&LIBRARY_NAMES).
Sourcepub fn open_from(candidates: &[&str]) -> Result<Self, NvmlUnavailable>
pub fn open_from(candidates: &[&str]) -> Result<Self, NvmlUnavailable>
2026-09-26: Open the first of candidates that loads. When that one
lacks a required symbol, the error is returned and later candidates are
not tried.
pub fn fns(&self) -> NvmlFns
Auto Trait Implementations§
impl Freeze for NvmlLibrary
impl RefUnwindSafe for NvmlLibrary
impl Send for NvmlLibrary
impl Sync for NvmlLibrary
impl Unpin for NvmlLibrary
impl UnwindSafe for NvmlLibrary
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