Expand description
Sharded async runtime API centered around msg_ring-style signaling.
Modules§
- boundary
- Async boundary channel for passing request/response work across runtime boundaries.
Structs§
- Cancellation
Future - Future returned by
CancellationToken::cancelled. - Cancellation
Token - Cooperative cancellation token shared between tasks.
- Interval
- Repeating timer that yields scheduled tick instants.
- Join
Handle - Future returned by runtime spawn APIs.
- Local
Join Handle - Future returned by shard-local spawn APIs.
- Next
Event - Future that yields the next event from a shard event queue.
- Next
HotCount - Future that yields the next coalesced hot-counter value for a tag.
- Remote
Shard - Handle to a specific target shard for message sending.
- Runtime
- Owned runtime instance.
- Runtime
Builder - Builder for constructing a
Runtime. - Runtime
Handle - Cheap, clonable runtime control handle.
- Runtime
Stats - Runtime statistics snapshot.
- Send
Ticket - Completion ticket for send/flush operations.
- Shard
Ctx - Shard-local execution context available on worker threads.
- Sleep
- A resettable sleep future.
- Task
Group - Group helper that couples task spawning with a shared cancellation token.
- Task
Group Join Handle - Join handle returned by
TaskGroup::spawn_with_placement. - Timeout
Error - Error returned by timeout helpers when the deadline expires.
Enums§
- Backend
Kind - Runtime backend selection.
- Event
- Runtime event stream item.
- Idle
Strategy - Worker idle strategy used when a shard has no immediately runnable work.
- Join
Error - Join handle completion failure.
- Missed
Tick Behavior - Policy used by
Intervalwhen ticks are missed. - Runtime
Error - Runtime construction/spawn/control error.
- Send
Error - Message send failure.
- Stealable
Queue Backend - Internal queue backend used for stealable task inboxes.
- Task
Placement - Task placement policy used when spawning.
Traits§
- RingMsg
- Trait for strongly-typed cross-shard message encoding/decoding.
Functions§
- interval
- Creates an interval that starts immediately.
- interval_
at - Creates an interval starting at
start. - run
- Runs a top-level async job on a freshly constructed runtime using default builder settings.
- run_
local_ on - Runs a top-level local (
!Send) async job on a specific shard. - run_
with - Runs a top-level async job on a freshly constructed runtime built from
builder. - sleep
- Asynchronously sleeps for at least
duration. - sleep_
until - Asynchronously sleeps until
deadline. - timeout
- Runs
futand returns an error if it does not complete withinduration. - timeout_
at - Runs
futand returns an error if it does not complete bydeadline.
Type Aliases§
- ShardId
- Runtime shard identifier.