pub unsafe trait WasmResource {
    // Required method
    unsafe fn drop(handle: u32);
}
Expand description

A trait which all wasm resources implement, namely providing the ability to drop a resource.

This generally is implemented by generated code, not user-facing code.

Required Methods§

source

unsafe fn drop(handle: u32)

Invokes the [resource-drop]... intrinsic.

Object Safety§

This trait is not object safe.

Implementors§