Wasmtime
wasmtime::component::ResourceType Class Reference

#include <val.hh>

Public Member Functions

 ResourceType (wasmtime_component_resource_type_t *raw)
 Takes ownership of raw and wraps it with this class.
 
 ResourceType (uint32_t ty)
 Creates a new host resource type with the specified ty identifier.
 
 ResourceType (const ResourceType &other)
 Copies another resource into this one.
 
ResourceTypeoperator= (const ResourceType &other)
 Copies another resource into this one.
 
 ResourceType (ResourceType &&other)=default
 Moves resources from another resource into this one.
 
ResourceTypeoperator= (ResourceType &&other)=default
 Moves resources from another resource into this one.
 
bool operator== (const ResourceType &b) const
 Compares two resource types for equality.
 
bool operator!= (const ResourceType &b) const
 Compares two resource types for inequality.
 
const wasmtime_component_resource_type_tcapi () const
 Returns the underlying C API pointer.
 
wasmtime_component_resource_type_tcapi ()
 Returns the underlying C API pointer.
 

Detailed Description

Class representing a component model resource value which is either a guest or host-defined resource.


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