pub struct UpstreamSwitchPort { /* private fields */ }Expand description
A PCI Express upstream switch port emulator.
An upstream switch port connects a switch to its parent (e.g., root port or another switch). It appears as a Type 1 PCI-to-PCI bridge with PCIe capability indicating it’s an upstream switch port.
Implementations§
Source§impl UpstreamSwitchPort
impl UpstreamSwitchPort
Sourcepub fn new() -> Self
pub fn new() -> Self
Constructs a new UpstreamSwitchPort emulator.
Sourcepub fn cfg_space(&self) -> &ConfigSpaceType1Emulator
pub fn cfg_space(&self) -> &ConfigSpaceType1Emulator
Get a reference to the configuration space emulator.
Sourcepub fn cfg_space_mut(&mut self) -> &mut ConfigSpaceType1Emulator
pub fn cfg_space_mut(&mut self) -> &mut ConfigSpaceType1Emulator
Get a mutable reference to the configuration space emulator.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UpstreamSwitchPort
impl !RefUnwindSafe for UpstreamSwitchPort
impl Send for UpstreamSwitchPort
impl Sync for UpstreamSwitchPort
impl Unpin for UpstreamSwitchPort
impl !UnwindSafe for UpstreamSwitchPort
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