Skip to main content

Crate lenso

Crate lenso 

Source
Expand description

The stable Rust authoring interface for Lenso Plugins and built-in Modules.

Harness feature authors use the Plugin-named facade. Built-in App authors may retain the Module-named compatibility facade. Adapter and Kernel implementation details remain behind generated glue.

Modules§

prelude
Common imports for native Rust Plugin and built-in Module authors.

Structs§

ActivateContext
Context supplied while a Module initializes against prepared dependencies.
BoundCapabilityClient
One typed Capability client paired with its App-local provider Instance key.
CancellationToken
Cooperative cancellation shared by one Module Instance generation.
Ctx
Kernel-owned context propagated across one native request invocation.
DeactivateContext
Context supplied while a Module releases one generation.
ManagedTaskScope
A Module-generation task scope backed by the selected Runtime Driver.
ManagedTasks
A Module field connected to its generation-owned task scope during activation.
ManyPort
A typed, lifecycle-bound many Capability requirement declared by a Module.
Port
A typed, lifecycle-bound Capability requirement declared by a Module.
PrepareContext
Context supplied while a Module reserves reversible resources.
ProviderStream
One typed provider Stream erased to the native Adapter only after authoring.
ProviderStreamChannel
The typed provider side of one bounded bidirectional Stream session.

Enums§

ManagedTasksError
Failure returned when a Module cannot spawn generation-owned work.
ModuleError
One Module operation failure with an explicit Domain/Runtime split.
RuntimeFailure
Runtime-owned failure, kept separate from Capability-defined Domain Errors.
StreamInput
One typed value sent by a Capability consumer to a Stream provider.
TypedExtensionError
Failure to encode, decode, or attach a typed Invocation extension.

Traits§

CapabilityClient
A generated, strongly typed client for one required Capability.
CapabilityClientMany
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 Module.
TypedExtension
One application-owned typed projection over an ordinary Invocation extension.

Type Aliases§

ModuleEventResult
An asynchronous Event handler outcome observed by the Adapter after admission.
ModuleFuture
The result type returned by prepare, activate, and deactivate hooks.
ModuleResult
A Module operation result that can explicitly preserve Domain and Runtime failures.
PluginError
Plugin-named operation failure preserving Domain and Runtime failures.
PluginEventResult
A Plugin Event handler outcome observed by the Adapter after admission.
PluginResult
A Plugin operation result preserving Domain and Runtime failures.

Attribute Macros§

module
Derives native Module source and, for consumer, its factory registration.
plugin
Derives native Plugin source through the same runtime lowering as [module].
provides
Derives one or more provided Capability endpoints, one native factory, and static registration.

Derive Macros§

ModuleConfig
Derives the locked JSON Schema fragment consumed by a struct-level Module.
PluginConfig
Derives Plugin configuration through the retained Module runtime schema.