Skip to main content

Crate lenso_native_adapter

Crate lenso_native_adapter 

Source
Expand description

Native Rust Execution Adapter for statically linked Plugin packages.

Structs§

CancellationToken
Cooperative cancellation shared by one Plugin Instance generation.
ConfiguredPluginFactory
A generated Plugin factory with event-owned private Host bindings.
InstanceResources
Immutable, content-addressed files owned by one Plugin Instance Generation.
ManagedTasks
A Plugin field connected to its generation-owned task scope during activation.
NativeFacilities
NativeGenerationContext
Explicit Host-generation context passed only to admitted owner factories.
NativeGenerationHandle
Typed authority grant; cloning it does not grant admission or extend a lease.
NativeGenerationLease
NativeGenerationScope
Host-owned guard; a new guard is required for every complete App generation.
NativeHostClock
Monotonic time from the same Driver supplied to this App’s Kernel.
NativeInstanceFacilities
NativePluginFactoryContext
Immutable Plan input supplied when a native factory creates one generation.
NativePluginInstance
Endpoints created for one statically linked Plugin Instance generation.
NativePluginRegistry
Statically linked native Plugin factories available to an App binary.

Enums§

ManagedTasksError
Failure returned when a Plugin cannot spawn generation-owned work.
RuntimeFailure
Runtime-owned failure, kept separate from Capability-defined Domain Errors.

Traits§

Lifecycle
Optional convention-based lifecycle hooks for a struct-level Plugin.
NativeGenerationResource
Owner-defined authority. Called after admission closes and every lease drains.
NativePluginDefinition
Generated construction and endpoint projection for a struct-authored Plugin.
NativePluginFactory
Adapter-specific factory for a statically linked native Rust Plugin.

Functions§

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

Type Aliases§

NativePluginHostBinding
Host-owned initialization retained until a Native Plugin is constructed.

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.