#[non_exhaustive]pub enum GpuKind {
Integrated,
Discrete,
Virtual,
Unknown,
}Expand description
Where a graphics adapter is.
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.
Integrated
Part of the CPU or the system chip.
Discrete
A card or chip of its own, with its own memory.
Virtual
Emulated by a hypervisor, or a display driver with no hardware.
Unknown
Not known.
Trait Implementations§
impl Copy for GpuKind
impl Eq for GpuKind
impl StructuralPartialEq for GpuKind
Auto Trait Implementations§
impl Forget for GpuKind
impl Freeze for GpuKind
impl RefUnwindSafe for GpuKind
impl Send for GpuKind
impl Sync for GpuKind
impl Unpin for GpuKind
impl UnsafeUnpin for GpuKind
impl UnwindSafe for GpuKind
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