Trait dbs_interrupt::InterruptNotifier
source · pub trait InterruptNotifier: Send + Sync {
// Required methods
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§
sourcefn notifier(&self) -> Option<&EventFd>
fn notifier(&self) -> Option<&EventFd>
Get the optional EventFd
object to inject interrupt to the virtual machine.
sourcefn clone_boxed(&self) -> Box<dyn InterruptNotifier>
fn clone_boxed(&self) -> Box<dyn InterruptNotifier>
Clone a boxed dyn trait object.