use crate::config::Config;
use crate::config::Hypervisor;
use crate::rpc::VmRpc;
use mesh::payload::message::ProtobufMessage;
use mesh::MeshPayload;
use mesh_worker::WorkerId;
use vmm_core_defs::HaltReason;
pub const VM_WORKER: WorkerId<VmWorkerParameters> = WorkerId::new("VmWorker");
#[derive(MeshPayload)]
pub struct VmWorkerParameters {
pub hypervisor: Option<Hypervisor>,
pub cfg: Config,
pub saved_state: Option<ProtobufMessage>,
pub rpc: mesh::Receiver<VmRpc>,
pub notify: mesh::Sender<HaltReason>,
}