pub enum HotPlugKey {
HostUpstreamPort {
host_addr: PciAddress,
},
HostDownstreamPort {
host_addr: PciAddress,
},
HostVfio {
host_addr: PciAddress,
},
GuestDevice {
guest_addr: PciAddress,
},
}Expand description
The key to identify hotplug device from host view. like host sysfs path for vfio pci device, host disk file path for virtio block device
Variants§
HostUpstreamPort
Fields
§
host_addr: PciAddressHostDownstreamPort
Fields
§
host_addr: PciAddressHostVfio
Fields
§
host_addr: PciAddressGuestDevice
Fields
§
guest_addr: PciAddressTrait Implementations§
Source§impl Clone for HotPlugKey
impl Clone for HotPlugKey
Source§fn clone(&self) -> HotPlugKey
fn clone(&self) -> HotPlugKey
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HotPlugKey
impl Debug for HotPlugKey
Source§impl Hash for HotPlugKey
impl Hash for HotPlugKey
Source§impl PartialEq for HotPlugKey
impl PartialEq for HotPlugKey
impl Copy for HotPlugKey
impl Eq for HotPlugKey
impl StructuralPartialEq for HotPlugKey
Auto Trait Implementations§
impl Freeze for HotPlugKey
impl RefUnwindSafe for HotPlugKey
impl Send for HotPlugKey
impl Sync for HotPlugKey
impl Unpin for HotPlugKey
impl UnwindSafe for HotPlugKey
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