vmbus_serial_resources/
lib.rs#![forbid(unsafe_code)]
use mesh::MeshPayload;
use vm_resource::Resource;
use vm_resource::ResourceId;
use vm_resource::kind::SerialBackendHandle;
use vm_resource::kind::VmbusDeviceHandleKind;
#[derive(MeshPayload)]
pub struct VmbusSerialDeviceHandle {
pub port: VmbusSerialPort,
pub backend: Resource<SerialBackendHandle>,
}
impl ResourceId<VmbusDeviceHandleKind> for VmbusSerialDeviceHandle {
const ID: &'static str = "vmbus_serial";
}
#[derive(MeshPayload)]
pub enum VmbusSerialPort {
Com1,
Com2,
}