wasmtime_component_linker_instance_add_resource

Function wasmtime_component_linker_instance_add_resource 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn wasmtime_component_linker_instance_add_resource( linker_instance: &mut wasmtime_component_linker_instance_t<'_>, name: *const u8, name_len: usize, ty: &wasmtime_component_resource_type_t, callback: wasmtime_component_resource_destructor_t, data: *mut c_void, finalizer: Option<extern "C" fn(*mut c_void)>, ) -> Option<Box<wasmtime_error_t>>