Skip to main content

Crate orbit_invoke

Crate orbit_invoke 

Source
Expand description

Bounded, fleet-local invocation transport over a dedicated Orbit ring.

This crate owns transport facts only: invocation identity, operation routing, opaque payload bytes, retained cursors and loss reporting. It does not know what an operation runs, who runs it, or what happens when it fails. Those belong to the runtime adapter consuming an invocation.

Publication proves only that a frame was committed. The ring is not a durable queue and provides no acknowledgement, claim, retry, response or exactly-once guarantee; cursors report overwritten frames as lag. A claim or result protocol must add its own authoritative state rather than change the meaning of this request ring.

The tokio feature adds [InvocationSubscription], an async adapter that waits on the ring’s native readiness fd where the platform provides one and polls otherwise.

Structs§

Invocation
One retained invocation with an opaque runtime-owned payload.
InvocationBus
Cheap fleet-local handle for publishing and polling invocations.
InvocationCursor
Caller-owned positions for every fleet-node lane.
InvocationId
Identity assigned when an invocation is committed to the ring.
InvocationPoll
Result of advancing one caller-owned invocation cursor.

Enums§

Error

Constants§

INVOCATION_PAYLOAD_MAX
INVOCATION_RING_CAPACITY
Number of retained invocation frames in each fleet-node lane.
INVOCATION_RING_KIND
Ring kind reserved for Orbit invocations.
INVOCATION_RING_PAYLOAD_CAPACITY
Maximum bytes available to one invocation envelope.
INVOCATION_RING_SPEC

Traits§

InvocationCodec
A runtime-owned typed payload codec.

Type Aliases§

Result