Class Handle

Manages a native handle to a Wasmer structure.

class Handle(T)
  
if (is(T == struct));

Constructors

NameDescription
this (value, borrowed)

Fields

NameTypeDescription
borrowed boolWhether this handle was borrowed from the Wasmer runtime. Borrowed handles are not automatically freed in D-land.

Properties

NameTypeDescription
handle[get] T*
lastError[get] stringThe last error message that was raised by the Wasmer Runtime.
valid[get] boolWhether this managed handle to a Wasmer structure is valid.