Expand description
The stable Rust interface for Lenso Plugins and product Hosts.
Adapter and Kernel implementation details remain behind generated glue.
Modules§
- prelude
- Common imports for native Rust Plugin authors.
Structs§
- Activate
Context - Context supplied while a Plugin initializes against prepared dependencies.
- Bound
Capability Client - One typed Capability client paired with its App-local provider Instance key.
- Cancellation
Token - Cooperative cancellation shared by one Plugin Instance generation.
- Ctx
- Kernel-owned context propagated across one native request invocation.
- Deactivate
Context - Context supplied while a Plugin releases one generation.
- Managed
Task Scope - A Plugin-generation task scope backed by the selected Runtime Driver.
- Managed
Tasks - A Plugin field connected to its generation-owned task scope during activation.
- Many
Port - A typed, lifecycle-bound
manyCapability requirement declared by a Plugin. - Port
- A typed, lifecycle-bound Capability requirement declared by a Plugin.
- Prepare
Context - Context supplied while a Plugin reserves reversible resources.
- Provider
Stream - One typed provider Stream erased to the native Adapter only after authoring.
- Provider
Stream Channel - The typed provider side of one bounded bidirectional Stream session.
Enums§
- Managed
Tasks Error - Failure returned when a Plugin cannot spawn generation-owned work.
- Runtime
Failure - Runtime-owned failure, kept separate from Capability-defined Domain Errors.
- Stream
Input - One typed value sent by a Capability consumer to a Stream provider.
- Typed
Extension Error - Failure to encode, decode, or attach a typed Invocation extension.
Traits§
- Capability
Client - A generated, strongly typed client for one required Capability.
- Capability
Client Many - A generated Capability client that can be connected to every explicitly bound provider in deterministic Resolved App Plan order.
- CtxExt
- Typed ordinary-extension helpers for
InvocationContext. - Lifecycle
- Optional convention-based lifecycle hooks for a struct-level Plugin.
- Typed
Extension - One application-owned typed projection over an ordinary Invocation extension.
Type Aliases§
- Plugin
Error - An operation failure preserving Domain and Runtime failures.
- Plugin
Event Result - An asynchronous Event handler outcome observed by the Adapter after admission.
- Plugin
Future - The result type returned by prepare, activate, and deactivate hooks.
- Plugin
Result - A Plugin operation result preserving Domain and Runtime failures.
Attribute Macros§
- plugin
- Derives native Plugin source and, for
consumer, its factory registration. - provides
- Derives one or more provided Capability endpoints, one native factory, and static registration.
Derive Macros§
- Plugin
Config - Derives the locked JSON Schema fragment consumed by a struct-level Plugin.