pub struct LoopRunner {
pub config: LoopModeConfig,
pub state: LoopModeState,
/* private fields */
}Expand description
Runtime scheduler that drives an iteration-mode agent.
Fields§
§config: LoopModeConfig§state: LoopModeStateImplementations§
Source§impl LoopRunner
impl LoopRunner
pub fn new(config: LoopModeConfig) -> Self
pub fn stop_handle(&self) -> Arc<AtomicBool> ⓘ
pub async fn run(&mut self, tick: &TickFn) -> LoopFinishReason
pub async fn run_with_state_observer<F, Fut>( &mut self, tick: &TickFn, observe: F, ) -> LoopFinishReason
Auto Trait Implementations§
impl Freeze for LoopRunner
impl RefUnwindSafe for LoopRunner
impl Send for LoopRunner
impl Sync for LoopRunner
impl Unpin for LoopRunner
impl UnsafeUnpin for LoopRunner
impl UnwindSafe for LoopRunner
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