pub struct EngineStatePoller { /* private fields */ }Expand description
Handle to a running HTTP-backfill poller for the core mirror fields.
Same lifecycle semantics as OperatorStatePoller: dropping
the handle does not stop the task; call
EngineStatePoller::shutdown for a clean exit.
Implementations§
Source§impl EngineStatePoller
impl EngineStatePoller
Sourcepub fn spawn(http: HttpClient, state: Arc<RwLock<EngineState>>) -> Self
pub fn spawn(http: HttpClient, state: Arc<RwLock<EngineState>>) -> Self
Spawn a backfill poller for status / positions / risk
/ regime / live_cockpit. Returns immediately — the first poll happens in
the background task on the first tick.
Sourcepub fn spawn_with_interval(
http: HttpClient,
state: Arc<RwLock<EngineState>>,
interval: Duration,
) -> Self
pub fn spawn_with_interval( http: HttpClient, state: Arc<RwLock<EngineState>>, interval: Duration, ) -> Self
Like Self::spawn with a custom interval. Used by tests
to exercise multiple polls in a short wall-clock window.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EngineStatePoller
impl !RefUnwindSafe for EngineStatePoller
impl Send for EngineStatePoller
impl Sync for EngineStatePoller
impl Unpin for EngineStatePoller
impl UnsafeUnpin for EngineStatePoller
impl !UnwindSafe for EngineStatePoller
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