pub struct SpawnScheduler { /* private fields */ }Implementations§
Source§impl SpawnScheduler
impl SpawnScheduler
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.
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.
Trait Implementations§
Source§impl Clone for SpawnScheduler
impl Clone for SpawnScheduler
Source§fn clone(&self) -> SpawnScheduler
fn clone(&self) -> SpawnScheduler
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto 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