Re-exports§
pub use root_lifecycle::SubcLifecycleAdmission;
Modules§
Structs§
- Bind
Blocker Reader Snapshot - Non-blocking scheduler explanation attached to a delayed RouteBind warning.
- Bind
Blocker Snapshot - Completion
Handle - Synchronous completion handle used by the executor tests and the future standalone bridge.
- Dispatch
Class Queue Snapshot - Dispatch
Liveness Snapshot - Dispatch
Loop Liveness - Progress marker for the scheduler (dispatch) loop, read by the subc stall watchdog from its own thread. Everything here is an atomic or a channel length read, so reading it never waits on the scheduler state mutex that a stalled loop may be blocked on or holding.
- Dispatch
Running Snapshot - Executor
- Concurrent scheduler-dispatch executor.
- Executor
Config - JobCancellation
- Cooperative cancellation for one cancellable executor job.
- JobCancellation
Context Guard - Long
Running Interactive JobSnapshot - Mutating
Lane Snapshot - Root
JobSnapshot - Scheduler occupants of one root, including jobs still waiting to enter their callback. Each call has a unique cancellation token, which distinguishes it from an older job that reused the same transport request ID.
- Root
Maintenance Executor - A root may submit maintenance without keeping its owning executor alive. The weak link avoids a cycle through the executor’s actor context.
- Single
Flight - Generation-aware single-flight cache.
Enums§
- JobCancel
Outcome - Outcome of
Executor::cancel_job. - JobClass
- Scheduler class used to keep deferrable maintenance from occupying the workers reserved for interactive route binds, tool calls, and bash.
- Lane
- Scheduler lane for command-handler execution.
- Maintenance
Coalesce Key - Idempotent maintenance drains that can share one queued execution.
- PreExecution
Cancel Outcome - Result of cancelling only work whose command closure has not started.
Constants§
Traits§
- Executor
App - Process census callbacks used when an executor adds or removes a root.
- Executor
Context - The context operations already performed at scheduler admission and execution. Associated types let each runtime define the application handle and config-pin guard it uses.
Functions§
- current_
actor_ writer_ waiting - True when interactive mutating work (a route-bind configure or a tool edit) is queued on the actor whose job runs on this worker thread, or a detached view publication is parked waiting to write the actor’s epoch.
- current_
bind_ gate_ is_ shared - True while the job on this worker is a route bind that holds its actor’s epoch gate only for reading.
- current_
job_ cancellation - The cancellation token of the job running on this worker thread, when the
job was submitted through
Executor::submit_cancellable_async. - current_
job_ cancelled - current_
thread_ is_ executor_ worker - install_
job_ cancellation - Install a cancellable executor job’s token on a continuation thread.
- request_
exclusive_ rerun - Ask for the shared-hold bind on this worker to be run again as an exclusive writer. Returns false (and does nothing) for every other job.
Type Aliases§
- Executor
Job - Repeatable
Job - A route-bind job that can run more than once. The scheduler may admit such a bind beside a running maintenance job or interactive readers with only a shared hold on the actor’s epoch gate; when the configure finds it must change the root, the run is discarded and the same job is queued again as an exclusive writer.