Wasmtime
wasmtime::component::ResourceHost Class Reference

#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.
 
ResourceHostoperator= (const ResourceHost &other)
 Copies another resource into this one.
 
 ResourceHost (ResourceHost &&other)=default
 Moves resources from another resource into this one.
 
ResourceHostoperator= (ResourceHost &&other)=default
 Moves resources from another resource into this one.
 
const wasmtime_component_resource_host_tcapi () const
 Returns the underlying C API pointer.
 
wasmtime_component_resource_host_tcapi ()
 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< ResourceAnyto_any (Store::Context cx) const
 Converts this host-defined resource into a generic resource-any.
 

Detailed Description

Class representing a component model resource value which is a host-owned resource.


The documentation for this class was generated from the following file: