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§

source

fn notify(&self) -> Result<(), Error>

Inject a device interrupt to the virtual machine.

source

fn notifier(&self) -> Option<&EventFd>

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

source

fn clone_boxed(&self) -> Box<dyn InterruptNotifier>

Clone a boxed dyn trait object.

source

fn as_any(&self) -> &dyn Any

Convert self to std::any::Any.

Implementors§