pub enum DeviceId {
PciDeviceId(PciId),
PlatformDeviceId(PlatformDeviceId),
}Variants§
PciDeviceId(PciId)
PCI Device, use its PciId directly.
PlatformDeviceId(PlatformDeviceId)
Platform device, use a unique Id.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DeviceId
impl<'de> Deserialize<'de> for DeviceId
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
Source§impl From<PlatformDeviceId> for DeviceId
impl From<PlatformDeviceId> for DeviceId
Source§fn from(v: PlatformDeviceId) -> Self
fn from(v: PlatformDeviceId) -> Self
Converts to this type from the input type.
impl Copy for DeviceId
impl Eq for DeviceId
impl StructuralPartialEq for DeviceId
Auto Trait Implementations§
impl Freeze for DeviceId
impl RefUnwindSafe for DeviceId
impl Send for DeviceId
impl Sync for DeviceId
impl Unpin for DeviceId
impl UnwindSafe for DeviceId
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