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
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