#[non_exhaustive]pub enum GpuSource {
Pdh,
Nvml,
DrmFdinfo,
Iokit,
}Expand description
Where a GPU adapter’s numbers come from.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Pdh
Windows performance counters. allotd builds that do not name a source ran on Windows only, so a missing source means this.
Nvml
NVIDIA’s management library, on Linux.
DrmFdinfo
The DRM drivers’ per-client statistics in /proc/<pid>/fdinfo, on Linux.
Iokit
IOKit accelerator statistics, on macOS.
Trait Implementations§
impl Copy for GpuSource
Source§impl<'de> Deserialize<'de> for GpuSource
impl<'de> Deserialize<'de> for GpuSource
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for GpuSource
impl StructuralPartialEq for GpuSource
Auto Trait Implementations§
impl Forget for GpuSource
impl Freeze for GpuSource
impl Move for GpuSource
impl RefUnwindSafe for GpuSource
impl Send for GpuSource
impl Sync for GpuSource
impl Unpin for GpuSource
impl UnsafeUnpin for GpuSource
impl UnwindSafe for GpuSource
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