Skip to main content

Crate lenso

Crate lenso 

Source
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§

ActivateContext
Context supplied while a Plugin initializes against prepared dependencies.
BoundCapabilityClient
One typed Capability client paired with its App-local provider Instance key.
CancellationToken
Cooperative cancellation shared by one Plugin Instance generation.
ConfiguredPluginFactory
A generated Plugin factory with event-owned private Host bindings.
Ctx
Kernel-owned context propagated across one native request invocation.
DeactivateContext
Context supplied while a Plugin releases one generation.
LifecycleContext
Bounded cooperative context available to complete-object construction and cleanup.
ManagedTaskScope
A Plugin-generation task scope backed by the selected Runtime Driver.
ManagedTasks
A Plugin field connected to its generation-owned task scope during activation.
ManyPort
A typed, lifecycle-bound many Capability requirement declared by a Plugin.
Port
A typed, lifecycle-bound Capability requirement declared by a Plugin.
PrepareContext
Context supplied while a Plugin 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 Plugin cannot spawn generation-owned work.
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 Plugin.
NativePluginDefinition
Generated construction and endpoint projection for a struct-authored Plugin.
TypedExtension
One application-owned typed projection over an ordinary Invocation extension.

Functions§

link_plugin
Explicitly retains one generated Plugin without referring to generated symbols.

Type Aliases§

PluginError
An operation failure preserving Domain and Runtime failures.
PluginEventResult
An asynchronous Event handler outcome observed by the Adapter after admission.
PluginFuture
The result type returned by prepare, activate, and deactivate hooks.
PluginResult
A Plugin operation result preserving Domain and Runtime failures.

Attribute Macros§

plugin
Derives native Plugin source and, for consumer, its factory registration.
plugin_impl
Binds an optional complete-object constructor and stop hook to a Plugin type.
provides
Derives one or more provided Capability endpoints, one native factory, and static registration.

Derive Macros§

PluginConfig
Derives the locked JSON Schema fragment consumed by a struct-level Plugin.