pub struct IntelBackend { /* private fields */ }Implementations§
Source§impl IntelBackend
impl IntelBackend
Sourcepub fn init() -> Result<Self, BackendError>
pub fn init() -> Result<Self, BackendError>
Production entry point: the live sysfs/procfs under /.
Trait Implementations§
Source§impl GpuBackend for IntelBackend
impl GpuBackend for IntelBackend
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 Freeze for IntelBackend
impl RefUnwindSafe for IntelBackend
impl Send for IntelBackend
impl Sync for IntelBackend
impl Unpin for IntelBackend
impl UnsafeUnpin for IntelBackend
impl UnwindSafe for IntelBackend
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