Crate vm_resource

source ·
Expand description

Infrastructure for type-erased “resource” types, representing interchangeable resources that can be resolved into the same type at runtime.

This allows a device’s resources to be described via mesh messages so that the device initialization code does not have to be statically aware of all the different possible resource types (e.g. via an enum). VMMs can link in different resource resolvers to support different resource types depending on compile-time configuration.

Modules§

  • Resource kind definitions that are used by multiple devices.

Macros§

Structs§

  • The generic resource defined for all resource kinds.
  • An opaque resource of kind K, for erasing the resource’s type.
  • A resource resolver capable of resolving resources of multiple types and kinds.

Enums§

Traits§