/// Executes this request on the given Vm.
///
/// # Arguments
/// * `vm` - The `Vm` to perform the request on.
///
/// This does not return a result, instead encapsulating the success or failure in a
/// `VmResponse` with the intended purpose of sending the response back over the  socket that
/// received this `VmRequest`.
Executes this request on the given Vm.
Executes this request on the given Vm .
pub fn execute(&self, vm: &VmFd) -> VmResponse {
        match self {
            &VmRequest::RegisterIoevent(ref evt, ref addr, datamatch) => {
                match vm.register_ioevent(evt, addr, datamatch) {
                    Ok(_) => VmResponse::Ok,
                    Err(e) => VmResponse::Err(e),
                }
            }
            &VmRequest::RegisterIrqfd(ref evt, irq) => match vm.register_irqfd(evt, irq) {
                Ok(_) => VmResponse::Ok,
                Err(e) => return VmResponse::Err(e),
            },
        }
    }
pub fn execute ( & self , vm : & VmFd ) -> VmResponse { match self { & VmRequest :: RegisterIoevent ( ref evt , ref addr , datamatch ) => { match vm . register_ioevent ( evt , addr , datamatch ) { Ok ( _ ) => VmResponse :: Ok , Err ( e ) => VmResponse :: Err ( e ) , } } & VmRequest :: RegisterIrqfd ( ref evt , irq ) => match vm . register_irqfd ( evt , irq ) { Ok ( _ ) => VmResponse :: Ok , Err ( e ) => return VmResponse :: Err ( e ) , } , } }
Executes this request on the given Vm.
Executes this request on the given Vm .
&self
vm
&VmFd