pub struct PhaseRuntime { /* private fields */ }Implementations§
Source§impl PhaseRuntime
impl PhaseRuntime
pub fn new(store: StateStore) -> Result<Self, StateError>
pub fn store(&self) -> &StateStore
pub async fn submit_command( &self, env: &ExecutionEnv, command: StateCommand, ) -> Result<SubmitCommandReport, StateError>
pub async fn run_phase( &self, env: &ExecutionEnv, phase: Phase, ) -> Result<PhaseRunReport, StateError>
pub async fn run_phase_with_context( &self, env: &ExecutionEnv, ctx: PhaseContext, ) -> Result<PhaseRunReport, StateError>
Sourcepub async fn collect_commands(
&self,
env: &ExecutionEnv,
ctx: PhaseContext,
) -> Result<StateCommand, StateError>
pub async fn collect_commands( &self, env: &ExecutionEnv, ctx: PhaseContext, ) -> Result<StateCommand, StateError>
Run phase hooks without committing — return the combined StateCommand.
pub async fn run_phase_with_limit( &self, env: &ExecutionEnv, phase: Phase, max_rounds: usize, ) -> Result<PhaseRunReport, StateError>
Trait Implementations§
Source§impl Clone for PhaseRuntime
impl Clone for PhaseRuntime
Source§fn clone(&self) -> PhaseRuntime
fn clone(&self) -> PhaseRuntime
Returns a duplicate of the value. Read more
1.0.0 · 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 Freeze for PhaseRuntime
impl !RefUnwindSafe for PhaseRuntime
impl Send for PhaseRuntime
impl Sync for PhaseRuntime
impl Unpin for PhaseRuntime
impl UnsafeUnpin for PhaseRuntime
impl !UnwindSafe for PhaseRuntime
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