Skip to main content

Crate tembra_core

Crate tembra_core 

Source
Expand description

A language-neutral kernel for orbs, managed objects and versioned operations.

The kernel stores opaque value and callback identities. The adapter that issued an identity owns its value, performs validation, and executes user code outside kernel borrows.

Structs§

Acquisition
Address
Stable identity. Tuple boundaries are preserved; keys are not delimiter-joined.
Completion
ContextContract
ContextKey
Diagnostics
Disposal
Wait for one retained instance’s physical disposal or host shutdown. Dropping the future unregisters the waiter without affecting cleanup.
Error
An operation failure. External effects performed by an adapter are not rolled back.
Host
InstalledOrb
Invocation
An admitted physical invocation. Finishing its observer does not finish this invocation.
Migration
OpaqueContextValue
Retain an owner-issued lease until its frame and physical consumers settle.
Orb
PreparedState
A private candidate tied to the exact invocation, object, revision and issuing host.
Reload
Replacement
Requirement
Resource
Scope
Service
Snapshot
Immutable metadata. Values remain owned by their language adapter.

Enums§

Action
Actions are executed by the adapter after a kernel operation completes.
Code
Machine-readable failure categories shared by language adapters.
ContextKind
ContextValue
Effect
These are execution requests, not policy hooks. Every platform runs the same program.
Lifetime
Owner
Reason
Built-in failure reasons. Orbs may still supply their own reason strings at an adapter seam.
Status
Step

Constants§

HOST_PRINCIPAL
The principal the host creates host-lifetime objects for itself as, when it installs the Orb.
MAX_ID
Largest generated identity, shared by every adapter without JSON precision loss.
RESERVED_MEMBERS
The members every reference to a service object has, which the kernel refuses as method names when it installs an Orb, in the lowerCamelCase spelling of the official JavaScript bindings.

Traits§

ContextDatum

Functions§

admits_linger
Whether the kernel admits a service’s objects of lifetime lingering linger_ms once unreferenced: a host-lifetime object lives until the host closes, and never lingers.
admits_principal
Whether the kernel admits an object of lifetime acquired by principal: a host-lifetime object belongs to the host, HOST_PRINCIPAL.
reserved_member
Whether a service method’s name is a member every reference has, one of RESERVED_MEMBERS, which the kernel refuses when it installs an Orb.
valid_version
Whether the kernel admits the version of a state or of a resource’s contract: versions start at 1.

Type Aliases§

Id
Host-local identities are never reused. Generated IDs fit exactly in a JavaScript Number; zero is reserved for an absent identity.
Result
Version