Expand description
Managed Rust orbs over the language-neutral Tembra kernel.
Re-exports§
pub use tembra_core as core;
Modules§
- codec
- Portable values use the same tagged JSON convention as the JavaScript SDK. Custom infrastructure codecs may replace this wire policy without changing the kernel.
- portable
- Host-issued capabilities at the native portable boundary.
Structs§
- Acquisition
Options - Requirements applied when acquiring a service reference.
- Cancellation
- A cooperative cancellation signal. Cancellation does not acknowledge physical settlement.
- Codec
- How a method bound with
Service::method_withreads its portable arguments and writes its result, in place of serde, so its Rust types need no serde implementation. - Context
- Contexts are issued by a host, and become unusable when their root or invocation ends.
- Declaration
- Error
- An operation failure. External effects performed by an adapter are not rolled back.
- Host
- Runs native callbacks on the supplied executor. Keep the executor running until callbacks and cleanup settle.
- Issued
Call - A dependency call as its caller issued it: the caller may cancel exactly this invocation, and wait until it has physically ended.
- LogRecord
- A diagnostic record, attributed by the host to the Orb that wrote it, never by a name the Orb gives.
- Observation
- A detachable native observation. Dropping it stops future notifications.
- Orb
- Native Orb declarations compile with the application and dispatch typed Rust callbacks.
- Provider
- The Orb that answers what a native Orb consumes from another: the name and API version it is
installed under. An Orb that
#[tembra::orb]generates takes one per imported interface and per hook it contributes to, as the fields of itsProviders, whichorb(..)requires. - Readable
- A checked immutable state view or cached selection.
- Reference
- A claim is released on drop. A running callback has its own physical kernel pin.
- Resource
- Resource
Key - Service
- A typed service. Methods execute once; only the portable entrypoint invokes serde.
- State
- Immutable snapshots stay in Rust. Validation runs before the kernel adopts their identity.
- Task
Scope - Authority for one declared in-memory background task.
Enums§
- Code
- Machine-readable failure categories shared by language adapters.
- Foreign
Notification - Metadata notifications carry claim and root cleanup across an attached language adapter.
Traits§
- Clock
- A monotonic local clock used for linger and lifecycle deadlines.
Type Aliases§
- Resource
Signal - Resource openers use the same cooperative signal as contexts and declared tasks.
- Result