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§
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. - Plugin
Cell - A cell structure to be used in single-threaded plugins.
- Plugin
Env - A companion structure, always passed as first argument of any plugin operation function, enabling the plugin to interact with the host implementation.
- Unix
Instant - An precise instant relative to the UNIX epoch, with nanosecond precision.
Enums§
- Error
- Errors that may occur when interacting with the Plugin API.
- Plugin
Op - The actual plugin operations.
- Plugin
Val - Values used to communicate with underlying plugins, either as inputs or outputs.