pub trait VmiHandler<Driver, Os>{
// Required method
fn handle_event(
&mut self,
event: VmiContext<'_, Driver, Os>,
) -> VmiEventResponse<Driver::Architecture>;
// Provided method
fn finished(&self) -> bool { ... }
}Expand description
A trait for handling VMI events.
A factory that creates a handler implementing this trait is passed to
the VmiSession::handle method to handle VMI events.
Required Methods§
Sourcefn handle_event(
&mut self,
event: VmiContext<'_, Driver, Os>,
) -> VmiEventResponse<Driver::Architecture>
fn handle_event( &mut self, event: VmiContext<'_, Driver, Os>, ) -> VmiEventResponse<Driver::Architecture>
Handles a VMI event.