[][src]Struct emu_core::device::DeviceInfo

pub struct DeviceInfo(pub AdapterInfo);

Contains information about a device

Methods

impl DeviceInfo[src]

pub fn name(&self) -> String[src]

The name of the device (e.g. - "Intel(R) UHD Graphics 620 (Kabylake GT2)"")

pub fn vendor_id(&self) -> usize[src]

The vendor ID (e.g. - 32902)

pub fn device_id(&self) -> usize[src]

The devie ID (e.g. - 22807)

pub fn device_type(&self) -> DeviceType[src]

The device type (e.g. - Cpu)

Trait Implementations

impl Clone for DeviceInfo[src]

impl Debug for DeviceInfo[src]

impl From<AdapterInfo> for DeviceInfo[src]

impl From<DeviceInfo> for AdapterInfo[src]

impl PartialEq<DeviceInfo> for DeviceInfo[src]

impl StructuralPartialEq for DeviceInfo[src]

Auto Trait Implementations

impl RefUnwindSafe for DeviceInfo

impl Send for DeviceInfo

impl Sync for DeviceInfo

impl Unpin for DeviceInfo

impl UnwindSafe for DeviceInfo

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T, U> AsDeviceBoxed<T> for U where
    T: AsBytes + ?Sized,
    U: Borrow<T>, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.