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

Inject a device interrupt to the virtual machine.

Get the optional EventFd object to inject interrupt to the virtual machine.

Clone a boxed dyn trait object.

Convert self to std::any::Any.

Implementors