pub struct DeviceJson<'a> { /* private fields */ }Expand description
The bhwi frontend’s serializable view of cached device metadata.
Conversion from Device performs no I/O. The device family uses the
device_type key, unlike hwi::HwiEnumeratedDevice’s type key.
Uncached info is omitted and an uncached fingerprint is null. Absent labels
are omitted; missing firmware is null, except Specter omits firmware and
version keys altogether.
Trait Implementations§
Source§impl<'a> From<&'a Device> for DeviceJson<'a>
impl<'a> From<&'a Device> for DeviceJson<'a>
Auto Trait Implementations§
impl<'a> Freeze for DeviceJson<'a>
impl<'a> RefUnwindSafe for DeviceJson<'a>
impl<'a> Send for DeviceJson<'a>
impl<'a> Sync for DeviceJson<'a>
impl<'a> Unpin for DeviceJson<'a>
impl<'a> UnsafeUnpin for DeviceJson<'a>
impl<'a> UnwindSafe for DeviceJson<'a>
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