Crate pluginop_wasm

Source
Expand description

A sub-crate of pluginop that should be imported by plugins.

Playing directly with WebAssembly export functions can be cumbersome. Instead, we propose a crate offering wrappers for these external calls, making the plugin development possible by only relying on safe Rust.

Modules§

fd
Plugin-side interface to file system API.
quic
All QUIC-related common structures.

Structs§

Bytes
A type, implemented as an access token, providing a capability-based access to raw bytes between the host implementation and the plugin bytecode.
Duration
A Duration type to represent a span of time, typically used for system timeouts.
PluginCell
A cell structure to be used in single-threaded plugins.
PluginEnv
A companion structure, always passed as first argument of any plugin operation function, enabling the plugin to interact with the host implementation.
UnixInstant
An precise instant relative to the UNIX epoch, with nanosecond precision.

Enums§

Error
Errors that may occur when interacting with the Plugin API.
PluginOp
The actual plugin operations.
PluginVal
Values used to communicate with underlying plugins, either as inputs or outputs.

Type Aliases§

Result