|
Wasmtime
|
#include <val.hh>
Public Member Functions | |
| ResourceHost (wasmtime_component_resource_host_t *raw) | |
Takes ownership of raw and wraps it with this class. | |
| ResourceHost (const ResourceHost &other) | |
| Copies another resource into this one. | |
| ResourceHost & | operator= (const ResourceHost &other) |
| Copies another resource into this one. | |
| ResourceHost (ResourceHost &&other)=default | |
| Moves resources from another resource into this one. | |
| ResourceHost & | operator= (ResourceHost &&other)=default |
| Moves resources from another resource into this one. | |
| const wasmtime_component_resource_host_t * | capi () const |
| Returns the underlying C API pointer. | |
| wasmtime_component_resource_host_t * | capi () |
| Returns the underlying C API pointer. | |
| ResourceHost (bool owned, uint32_t rep, uint32_t ty) | |
Creates a new host-defined resource with the specified owned, rep, and ty identifiers. | |
| bool | owned () const |
| Returns whether this resource is owned. | |
| uint32_t | rep () const |
| Returns the "rep" identifier associated with this resource. | |
| uint32_t | type () const |
| Returns the "type" identifier associated with this resource. | |
| Result< ResourceAny > | to_any (Store::Context cx) const |
| Converts this host-defined resource into a generic resource-any. | |
Class representing a component model resource value which is a host-owned resource.