Skip to main content

Crate lenso_native_adapter

Crate lenso_native_adapter 

Source
Expand description

Native Rust Execution Adapter for statically linked Module packages.

Structs§

CancellationToken
Cooperative cancellation shared by one Module Instance generation.
ManagedTasks
A Module field connected to its generation-owned task scope during activation.
NativeModuleFactoryContext
Immutable Plan input supplied when a native factory creates one generation.
NativeModuleInstance
Endpoints created for one statically linked Module Instance generation.
NativeModuleRegistry
Statically linked native Module factories available to an App binary.

Enums§

ManagedTasksError
Failure returned when a Module 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 Module.
NativeModuleFactory
Adapter-specific factory for a statically linked native Rust Module.

Attribute Macros§

module
Derives native Module source and, for consumer, its factory registration.
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.