pub struct SpawnScheduler { /* private fields */ }Implementations§
Source§impl SpawnScheduler
impl SpawnScheduler
pub fn set_ticket_service(&self, service: Option<Arc<TicketService>>)
pub async fn validate_required_child_context_route( &self, metadata: &HashMap<String, String>, role: &str, ) -> Result<(), String>
pub fn new(ctx: SpawnContext) -> Self
pub async fn enqueue(&self, job: SpawnJob) -> Result<(), String>
Sourcepub async fn enqueue_announced(
&self,
job: SpawnJob,
title: Option<String>,
) -> Result<(), String>
pub async fn enqueue_announced( &self, job: SpawnJob, title: Option<String>, ) -> Result<(), String>
Reserve queue capacity, publish the observable child Start, and only then release the job to the worker. This preserves S→C ordering even when child loading/execution fails immediately.
pub async fn enqueue_announced_with_gate( &self, job: SpawnJob, title: Option<String>, gate: Option<&AdmissionGate>, ) -> Result<AdmissionCommit<()>, String>
Sourcepub async fn enqueue_announced_for_generation(
&self,
job: SpawnJob,
title: Option<String>,
gate: Option<&AdmissionGate>,
launch_generation: Option<u64>,
) -> Result<AdmissionCommit<()>, String>
pub async fn enqueue_announced_for_generation( &self, job: SpawnJob, title: Option<String>, gate: Option<&AdmissionGate>, launch_generation: Option<u64>, ) -> Result<AdmissionCommit<()>, String>
A child action supplies the generation it durably prepared before queue admission. Replayed or cancelled generations cannot borrow a newer explicit retry’s pending status.
Sourcepub async fn publish_parent_replayable_event(
&self,
parent_session_id: &str,
event: AgentEvent,
)
pub async fn publish_parent_replayable_event( &self, parent_session_id: &str, event: AgentEvent, )
Publish replayable parent-session state through the scheduler’s shared runner/cache/account/broadcast boundary.
pub async fn lock_child_launch(&self, child_id: &str) -> ChildLaunchGuard
pub async fn publish_queued_child_cancellation( &self, parent_id: &str, child_id: &str, )
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for SpawnScheduler
impl !UnwindSafe for SpawnScheduler
impl Freeze for SpawnScheduler
impl Send for SpawnScheduler
impl Sync for SpawnScheduler
impl Unpin for SpawnScheduler
impl UnsafeUnpin for SpawnScheduler
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