#[repr(transparent)]pub struct DeviceId(pub u16);Expand description
Device IDs allocated under VENDOR_ID for OpenVMM’s first-party
emulated devices.
These are centrally managed by Microsoft: a device ID must be formally assigned before use so that it does not collide with any other Microsoft product that shares this vendor ID.
Tuple Fields§
§0: u16Implementations§
Source§impl DeviceId
impl DeviceId
Sourcepub const PCIE_ROOT_PORT: DeviceId
pub const PCIE_ROOT_PORT: DeviceId
PCIe root port.
Sourcepub const PCIE_UPSTREAM_SWITCH_PORT: DeviceId
pub const PCIE_UPSTREAM_SWITCH_PORT: DeviceId
PCIe upstream switch port.
Sourcepub const PCIE_DOWNSTREAM_SWITCH_PORT: DeviceId
pub const PCIE_DOWNSTREAM_SWITCH_PORT: DeviceId
PCIe downstream switch port.
Trait Implementations§
Source§impl Ord for DeviceId
impl Ord for DeviceId
Source§impl PartialOrd for DeviceId
impl PartialOrd for DeviceId
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 UnsafeUnpin 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