pub enum Lane {
PureRead,
SerialLspStatus,
HeavyInit,
Mutating,
MaintenanceCommit,
ProviderMetadata,
CallLedger,
}Expand description
Scheduler lane for command-handler execution.
Variants§
PureRead
Pure read-only work. Runs under the actor epoch read gate and is capped per actor.
SerialLspStatus
LSP/status work. Serialized per actor by scheduler admission while still using the shared epoch read gate.
HeavyInit
Heavy lazy initialization. The scheduler acquires a process-wide heavy permit before dispatch; cache and index builders reject stale generations and serialize publication internally, so no actor epoch guard wraps the command or the delivery of its response.
Mutating
Mutating work. Becomes a writer barrier at the actor queue head, drains
in-flight reads, and runs under the actor epoch write gate. Reserved for
configure and user-initiated tool mutations: background maintenance must
use MaintenanceCommit so it can never exclude interactive reads.
MaintenanceCommit
Maintenance work that mutates only subsystem state behind that subsystem’s own lock (watcher/LSP drains, completed-build installs, callgraph store writes). Runs under the actor epoch READ gate and overlaps PureReads; serialized to one in-flight per actor so maintenance cannot self-stack.
ProviderMetadata
Provider discovery and policy-store operations. Serialized per root on reserved capacity, without an index epoch hold or writer-barrier wait.
CallLedger
Call-ledger bookkeeping for keyed tool calls: the row a call writes
before it dispatches, the settlement its terminal reply waits for
before the transport writer may send it, the row reads a repeated call
makes while it waits for that settlement, and the ledger and grant
writes that end a scope. Each job is one short SQLite transaction
behind the database’s own mutex and touches no index state, so it takes
no epoch gate and does not wait for readers, LSP or maintenance jobs,
or a running writer. On the Mutating lane it would wait until every
read on its root had drained, and each keyed reply would wait with it.
Running beside a writer such as a configure loses no protection:
AppContext::open_db returns the process-shared database handle and
replaces it only when the storage path changes, so ledger jobs of other
roots always ran beside any configure. Jobs run one at a time per actor
in submission order, so one root’s ledger writes land in the order they
were queued; a scope end therefore settles every admission queued on
its root before it. Queued ProviderMetadata jobs are cancelled when the
root’s last route unbinds; these are not, because a settlement records
a call that already ran.
Trait Implementations§
impl Copy for Lane
impl Eq for Lane
impl StructuralPartialEq for Lane
Auto Trait Implementations§
impl Forget for Lane
impl Freeze for Lane
impl Move for Lane
impl RefUnwindSafe for Lane
impl Send for Lane
impl Sync for Lane
impl Unpin for Lane
impl UnsafeUnpin for Lane
impl UnwindSafe for Lane
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more