Expand description
Primitive #[repr(C)] types used at the plug-in boundary.
Only types in this module (and other #[repr(C)] types built from them) may
cross between an independently compiled plug-in cdylib and the host. Standard
library types like String, Vec, and Box<dyn Trait> rely on Rust’s
unstable ABI and must never appear in a function signature exposed across
the boundary.
Structs§
- Borrowed
Str - A borrowed UTF-8 string with a lifetime tied to the producer’s storage.
- Owned
Bytes - An owned byte buffer crossing the plug-in boundary.
- Plugin
Error - Generic plug-in error returned across the boundary.
- Slice
- A borrowed slice of
Twith a lifetime tied to the producer’s storage.
Enums§
- Plugin
Error Code - Coarse-grained error categories for
PluginError. - Plugin
Result - A
Result-shaped union for boundary calls.
Functions§
- drop_
owned_ ⚠bytes - Default
drop_fnused byOwnedBytes::from_vec. Plug-ins that buildOwnedBytesviafrom_vecget matching free behaviour automatically.