pub struct TestPciInterruptController { /* private fields */ }Expand description
A test-only interrupt controller that simply stashes incoming interrupt
requests in a FIFO queue. Implements SignalMsi.
Implementations§
Source§impl TestPciInterruptController
impl TestPciInterruptController
Sourcepub fn get_next_interrupt(&self) -> Option<(u64, u32)>
pub fn get_next_interrupt(&self) -> Option<(u64, u32)>
Fetch the first (addr, data) MSI-X interrupt in the FIFO interrupt queue
Sourcepub fn signal_msi(&self) -> Arc<dyn SignalMsi>
pub fn signal_msi(&self) -> Arc<dyn SignalMsi>
Returns an Arc<dyn SignalMsi> to this controller.
Trait Implementations§
Source§impl Clone for TestPciInterruptController
impl Clone for TestPciInterruptController
Source§fn clone(&self) -> TestPciInterruptController
fn clone(&self) -> TestPciInterruptController
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for TestPciInterruptController
impl !RefUnwindSafe for TestPciInterruptController
impl Send for TestPciInterruptController
impl Sync for TestPciInterruptController
impl Unpin for TestPciInterruptController
impl !UnwindSafe for TestPciInterruptController
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