pub struct NvidiaBackend { /* private fields */ }Implementations§
Source§impl NvidiaBackend
impl NvidiaBackend
pub fn init() -> Result<Self, BackendError>
Trait Implementations§
Source§impl GpuBackend for NvidiaBackend
impl GpuBackend for NvidiaBackend
fn name(&self) -> &'static str
Source§fn static_info(&mut self, dev: &DeviceId) -> Result<StaticInfo, BackendError>
fn static_info(&mut self, dev: &DeviceId) -> Result<StaticInfo, BackendError>
Queried once per device.
Source§fn refresh_dynamic(
&mut self,
dev: &DeviceId,
) -> Result<DynamicSample, BackendError>
fn refresh_dynamic( &mut self, dev: &DeviceId, ) -> Result<DynamicSample, BackendError>
Called every tick.
Source§fn refresh_processes(
&mut self,
dev: &DeviceId,
) -> Result<Vec<ProcessSample>, BackendError>
fn refresh_processes( &mut self, dev: &DeviceId, ) -> Result<Vec<ProcessSample>, BackendError>
Called every tick, separately from dynamic info (some sources differ).
Auto Trait Implementations§
impl !RefUnwindSafe for NvidiaBackend
impl !UnwindSafe for NvidiaBackend
impl Freeze for NvidiaBackend
impl Send for NvidiaBackend
impl Sync for NvidiaBackend
impl Unpin for NvidiaBackend
impl UnsafeUnpin for NvidiaBackend
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