struct PortKey {
port_state: PortState,
pci_address: PciAddress,
}Expand description
PortKey is a unique identifier of ports with an ordering defined on it.
Ports are ordered by whose downstream device would be discovered first by the guest OS. Empty ports without pending events are ordered before those with pending events. When multiple empty ports without pending events are available, they are ordered by PCI enumeration.
Fields§
§port_state: PortState§pci_address: PciAddressTrait Implementations§
Source§impl Ord for PortKey
impl Ord for PortKey
Source§impl PartialOrd for PortKey
impl PartialOrd for PortKey
impl Eq for PortKey
impl StructuralPartialEq for PortKey
Auto Trait Implementations§
impl Freeze for PortKey
impl RefUnwindSafe for PortKey
impl Send for PortKey
impl Sync for PortKey
impl Unpin for PortKey
impl UnwindSafe for PortKey
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
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.