pub struct KernelRuntime { /* private fields */ }Expand description
Pure kernel runtime wrapper. SDKs should migrate toward feeding
KernelInput values here instead of directly driving LoopStateMachine.
Implementations§
Source§impl KernelRuntime
impl KernelRuntime
pub fn new(policy: LoopPolicy) -> Self
pub fn state_machine(&self) -> &LoopStateMachine
pub fn state_machine_mut(&mut self) -> &mut LoopStateMachine
pub fn is_terminal(&self) -> bool
Sourcepub fn local_subagents_spawned(&self) -> u32
pub fn local_subagents_spawned(&self) -> u32
L1 (RunGroup): this vehicle’s cumulative sub-agent spawns this run, read back by the SDK at run end to charge the group ledger (so the next member’s cumulative spawn cap is seeded correctly).
pub fn step(&mut self, input: KernelInput) -> KernelStep
Auto Trait Implementations§
impl !RefUnwindSafe for KernelRuntime
impl !UnwindSafe for KernelRuntime
impl Freeze for KernelRuntime
impl Send for KernelRuntime
impl Sync for KernelRuntime
impl Unpin for KernelRuntime
impl UnsafeUnpin for KernelRuntime
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