Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Plugins
contain functions that can be called
val create :
?config:Manifest.config ->
?wasi:bool ->
?functions:Function.t list ->
?context:Context.t ->
string ->
(t, Error.t) Stdlib.result
Make a new plugin from raw WebAssembly or JSON encoded manifest
val of_manifest :
?wasi:bool ->
?functions:Function.t list ->
?context:Context.t ->
Manifest.t ->
(t, Error.t) Stdlib.result
Make a new plugin from a Manifest
val update :
t ->
?config:(string * string option) list ->
?wasi:bool ->
?functions:Function.t list ->
string ->
(unit, [ `Msg of string ]) Stdlib.result
Update a plugin from raw WebAssembly or JSON encoded manifest
val update_manifest :
t ->
?wasi:bool ->
Manifest.t ->
(unit, Error.t) Stdlib.result
Update a plugin from a Manifest
Call a function, uses Bigstringaf.t
for input/output
Call a function, uses string
for input/output
val free : t -> unit
Drop a plugin
val function_exists : t -> string -> bool
Check if a function is exported by a plugin
module Cancel_handle : sig ... end
val cancel_handle : t -> Cancel_handle.t