pub fn vm(&self) -> Result<&Vm, VmError> {
        match self.vms.last() {
            Some(vm) => Ok(vm),
            None => Err(VmError::from(VmErrorKind::NoRunningVm)),
        }
    }
/// Get the current virtual machine.
Get the current virtual machine.
Get the current virtual machine .
pub fn vm(&self) -> Result<&Vm, VmError> {
        match self.vms.last() {
            Some(vm) => Ok(vm),
            None => Err(VmError::from(VmErrorKind::NoRunningVm)),
        }
    }
pub fn vm ( & self ) -> Result < & Vm , VmError > { match self . vms . last ( ) { Some ( vm ) => Ok ( vm ) , None => Err ( VmError :: from ( VmErrorKind :: NoRunningVm ) ) , } }
Get the current virtual machine.
Get the current virtual machine .
&self
&self