pub trait MapVpciInterrupt: Send + Sync {
// Required methods
fn register_interrupt(
&self,
vector_count: u32,
params: &VpciInterruptParameters<'_>,
) -> impl Future<Output = Result<MsiAddressData, RegisterInterruptError>> + Send;
fn unregister_interrupt(
&self,
address: u64,
data: u32,
) -> impl Future<Output = ()> + Send;
}
Expand description
Trait to model host-assisted MSI/MSI-X configuration when using VPCI.
The VPCI model allows the guest to register interrupts with the host, and have the host return an MSI (address, data) value to use to program the MSI/MSI-X configuration within the device.
Required Methods§
fn register_interrupt( &self, vector_count: u32, params: &VpciInterruptParameters<'_>, ) -> impl Future<Output = Result<MsiAddressData, RegisterInterruptError>> + Send
fn unregister_interrupt( &self, address: u64, data: u32, ) -> impl Future<Output = ()> + Send
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.