Trait vm_resource::ResourceId
source · pub trait ResourceId<K> {
const ID: &'static str;
}
Expand description
A trait identifying a resource type’s ID (within a given ResourceKind
).
enum DiskKind {}
#[derive(mesh::MeshPayload)]
struct FileDiskConfig {
path: String,
}
impl vm_resource::ResourceId<DiskKind> for FileDiskConfig {
const ID: &'static str = "file";
}
Required Associated Constants§
Object Safety§
This trait is not object safe.