Trait dbs_interrupt::InterruptNotifier
source · [−]pub trait InterruptNotifier: Send + Sync {
fn notify(&self) -> Result<(), Error>;
fn notifier(&self) -> Option<&EventFd>;
fn clone_boxed(&self) -> Box<dyn InterruptNotifier>;
fn as_any(&self) -> &dyn Any;
}
Expand description
Trait to inject device interrupts to virtual machines.
Required Methods
Get the optional EventFd
object to inject interrupt to the virtual machine.
fn clone_boxed(&self) -> Box<dyn InterruptNotifier>
fn clone_boxed(&self) -> Box<dyn InterruptNotifier>
Clone a boxed dyn trait object.