#[non_exhaustive]pub struct Gpu {
pub name: String,
pub vendor: GpuVendor,
pub kind: GpuKind,
pub vendor_id: Option<u16>,
pub device_id: Option<u16>,
pub memory: Option<Bytes>,
pub driver: Option<String>,
}Expand description
One graphics adapter.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringIts name: “NVIDIA GeForce RTX 4070”, “Apple M2”. On Linux without a
pci.ids database, the vendor and the device id: “NVIDIA GPU 0x2786”.
vendor: GpuVendorWho made it.
kind: GpuKindBuilt in, on its own card, or emulated.
vendor_id: Option<u16>The PCI vendor id.
device_id: Option<u16>The PCI device id.
memory: Option<Bytes>Dedicated video memory, when the OS reports it.
driver: Option<String>The driver: amdgpu, i915, a Windows driver version.
Trait Implementations§
impl Eq for Gpu
impl StructuralPartialEq for Gpu
Auto Trait Implementations§
impl Forget for Gpu
impl Freeze for Gpu
impl Move for Gpu
impl RefUnwindSafe for Gpu
impl Send for Gpu
impl Sync for Gpu
impl Unpin for Gpu
impl UnsafeUnpin for Gpu
impl UnwindSafe for Gpu
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