Skip to main content

Crate lenso_kernel

Crate lenso_kernel 

Source
Expand description

Portable Lenso vNext Kernel and Runtime Driver seam.

Structs§

ActivateContext
Context supplied while a Module initializes against prepared dependencies.
AppAdmission
App-wide admission for externally triggered work.
AppReadyGate
A shared App-wide signal that opens exactly once after every Module activates.
CancellationToken
Cooperative cancellation shared by one Module Instance generation.
DeactivateContext
Context supplied while a Module releases one generation.
DeterministicDriver
Static identity and Rust value types generated for one request Capability. A deterministic, OS-independent Runtime Driver for Kernel conformance tests.
DiagnosticFilter
A compact source allowlist for one observer.
DiagnosticObserver
The receiving side of one independently bounded diagnostics queue.
DiagnosticRecord
One sequenced, timestamped Runtime Diagnostic record.
DriverTask
Driver-owned handle used to cancel and join local work.
EventPublishResult
One deterministic result for one explicit subscriber binding.
ExecutionAdapterCatalog
Immutable Adapter catalog assembled by a Runner before Kernel boot.
ExecutionClassSet
The execution classes contributed by installed Adapter packages.
InvocationContext
Kernel-owned context propagated across one native request invocation.
InvocationExtension
An opaque extension supplied by a caller Module.
Kernel
The portable App execution engine.
ManagedResourceHandle
A handle that releases one managed resource at most once.
ManagedResourceScope
A Module-generation resource scope backed by Driver-polled cleanup futures.
ManagedTask
A Kernel-owned task handle that is cleaned up with its Module generation.
ManagedTaskScope
A Module-generation task scope backed by the selected Runtime Driver.
ModuleDependencies
The explicit Capability dependencies available during Module lifecycle.
ModuleDependency
A deterministic dependency visible to one Module Instance.
ModuleDependencyHandle
An opaque, Adapter-resolved Capability endpoint passed to lifecycle code.
ModuleEventDependencyHandle
An opaque Event endpoint passed to Module lifecycle code.
ModuleStreamDependencyHandle
An opaque, Adapter-resolved stream Capability endpoint passed to lifecycle code.
NativeApp
A started native App whose generated clients can invoke resolved bindings.
NativeEndpointSet
The complete native endpoint set owned by one Module generation.
NativeEventHandle
Typed, immutable Event endpoints materialized before App boot completes.
NativeRequestHandle
Typed, immutable native Capability endpoints materialized before App boot completes.
NativeStream
One opened, typed bidirectional stream session.
NativeStreamHandle
Typed, immutable stream endpoints materialized before App boot completes.
NoopModuleLifecycle
Default no-op lifecycle used by endpoint-only native fixtures.
PrepareContext
Context supplied while a Module reserves reversible resources.
PreparedBinding
One provider-specific binding prepared by an Execution Adapter.
PreparedEventBinding
One provider-specific ephemeral Event binding prepared by an Adapter.
PreparedNativeApp
Prepared native bindings returned by an Execution Adapter to Kernel.
PreparedNativeModule
One freshly prepared Module Instance generation returned by an Execution Adapter.
PreparedStreamBinding
One provider-specific bidirectional stream binding prepared by an Adapter.
ReadinessContext
Context supplied after the App Ready Gate has opened.
RuntimeDiagnostics
An opt-in Runtime Diagnostics port.
SealedInvocationExtension
An opaque extension whose issuer and audience must survive Adapter hops.

Enums§

DeactivationReason
The reason a Module generation is being deactivated.
DiagnosticAdmission
A bounded admission outcome safe to expose to a diagnostic observer.
DiagnosticEvent
Structural, lossy metadata emitted by the Kernel.
DiagnosticOutcome
An outcome that is safe to expose without including a Domain Error body.
DiagnosticShutdownOutcome
A sanitized App shutdown outcome.
DiagnosticSource
The Kernel subsystem that produced one Runtime Diagnostic.
DiagnosticSubscribeError
Error returned when an observer queue cannot be created.
EventAdmission
The admission result for one publisher-to-subscriber binding.
ExecutionAdapterCatalogError
A Runner could not assemble one unambiguous Adapter catalog.
InvocationContextError
Failure returned when an Invocation Context extension cannot be attached.
ManagedTaskError
Error returned when a managed task cannot be admitted to its scope.
ModuleLifecyclePhase
The lifecycle phase represented by a Module context.
NativeStreamItem
Type-erased stream item crossing the Kernel/Adapter seam.
PlanValidationError
A reason the Kernel rejected a Resolved App Plan before boot.
ResourceRegistrationError
Error returned when a resource cannot be registered in a closed scope.
RuntimeFailure
Runtime-owned failure, kept separate from Capability-defined Domain Errors.
RuntimeFailureKind
A sanitized category of Runtime Failure.
ShutdownOutcome
The result of bounded cleanup after a graceful shutdown request.
StreamEvent
One observable item received from a bidirectional stream.
TaskOutcome
Result of joining a Runtime Driver task.
TerminalOutcome
A successful terminal result returned to the embedding Runner.

Traits§

EventCapability
Static identity and Rust value types generated for one ephemeral Event Capability.
ExecutionAdapter
Host-specific seam that instantiates Module generations and prepares endpoints.
ManagedResource
A resource whose release is owned by one Module Instance generation.
ModuleLifecycle
Adapter-facing lifecycle Interface for one Module Instance generation.
NativeEventEndpoint
Adapter-facing endpoint for one or more ephemeral Event Operations.
NativeExecutionAdapter
Native Rust Adapter Interface for statically linked Module packages.
NativeRequestEndpoint
Type-erased native endpoint used only while Kernel constructs and dispatches the graph.
NativeStreamEndpoint
Adapter-facing endpoint for one or more bidirectional stream Operations.
NativeStreamSession
Adapter-owned bidirectional stream session.
RequestCapability
RuntimeDriver
Host facilities required to advance the portable Kernel.
StreamCapability
Static identity and Rust value types generated for one stream Capability.

Type Aliases§

EventPublishStatus
Alias emphasizing the result’s publication context.
LocalTask
A task owned by a Runtime Driver’s single-threaded local lane.
ModuleFuture
The result type returned by prepare, activate, and deactivate hooks.
RequestId
Kernel-generated identity for one logical request invocation.
ResourceFuture
A future used to release one Driver-backed managed resource.
StreamSession
Alias using the transport-neutral term used by the Capability model.