#![forbid(unsafe_code)]
use mesh::MeshPayload;
use net_backend_resources::mac_address::MacAddress;
use vm_resource::Resource;
use vm_resource::ResourceId;
use vm_resource::kind::NetEndpointHandleKind;
use vm_resource::kind::PciDeviceHandleKind;
#[derive(MeshPayload)]
pub struct GdmaDeviceHandle {
pub vports: Vec<VportDefinition>,
}
impl ResourceId<PciDeviceHandleKind> for GdmaDeviceHandle {
const ID: &'static str = "gdma";
}
#[derive(MeshPayload)]
pub struct VportDefinition {
pub mac_address: MacAddress,
pub endpoint: Resource<NetEndpointHandleKind>,
}