pub struct Scheduler;Expand description
Effect-aware tool scheduler producing lane assignments only.
The scheduler never executes tools. It partitions validated invocations by
SchedulerClass so the kernel can run parallel-safe work concurrently while
serializing mutation and granting exclusive work its own lane. Source order
within a lane is preserved; the kernel commits results in canonical source
order regardless of completion order.
Implementations§
Source§impl Scheduler
impl Scheduler
Sourcepub fn plan<'a>(
&self,
invocations: &'a [&'a ValidatedToolInvocation],
) -> Result<SchedulePlan<'a>, KernelError>
pub fn plan<'a>( &self, invocations: &'a [&'a ValidatedToolInvocation], ) -> Result<SchedulePlan<'a>, KernelError>
Partitions validated invocations into scheduler lanes.
§Errors
Returns a SchedulerConflict for any invocation whose
SchedulerClass::requires_policy() is true (unknown effects). The
scheduler never auto-schedules policy-required work.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Scheduler
impl RefUnwindSafe for Scheduler
impl Send for Scheduler
impl Sync for Scheduler
impl Unpin for Scheduler
impl UnsafeUnpin for Scheduler
impl UnwindSafe for Scheduler
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
Mutably borrows from an owned value. Read more