pub trait PciePortVariant: Send {
    // Required methods
    fn get_pcie_port(&self) -> &PciePort;
    fn get_pcie_port_mut(&mut self) -> &mut PciePort;
    fn get_removed_devices_impl(&self) -> Vec<PciAddress>;
    fn hotplug_implemented_impl(&self) -> bool;
    fn hotplugged_impl(&self) -> bool;
}
Expand description

Helper trait for implementing PcieDevice where most functions are proxied directly to a PciePort instance.

Required Methods§

source

fn get_pcie_port(&self) -> &PciePort

source

fn get_pcie_port_mut(&mut self) -> &mut PciePort

source

fn get_removed_devices_impl(&self) -> Vec<PciAddress>

Called via PcieDevice.get_removed_devices

source

fn hotplug_implemented_impl(&self) -> bool

Called via PcieDevice.hotplug_implemented

source

fn hotplugged_impl(&self) -> bool

Called via PcieDevice.hotplug

Implementors§