pub struct Gpu {
pub accel: Accel,
pub name: String,
pub memory_bytes: u64,
pub unified: bool,
pub compute_capability: Option<(u32, u32)>,
pub driver: Option<String>,
}Fields§
§accel: Accel§name: String§memory_bytes: u64Dedicated memory; for unified-memory devices, the system memory.
unified: boolThe device shares system memory (Apple, GB10, AMD APUs).
compute_capability: Option<(u32, u32)>NVIDIA compute capability, such as (8, 6).
driver: Option<String>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Gpu
impl<'de> Deserialize<'de> for Gpu
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 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