Skip to main content

CoordView

Trait CoordView 

Source
pub trait CoordView: Send + Sync {
    // Required methods
    fn active_leases(&self) -> Vec<LeaseSummary>;
    fn pending_handoffs(&self) -> Vec<HandoffSummary>;
    fn pending_interrupts(&self) -> Vec<InterruptSummary>;
    fn tasks(&self) -> Vec<TaskSummary>;
}
Expand description

Read access to coordination state (leases, handoffs, interrupts, tasks). Backed today by the coord SQLite store; in tests, by a fixture.

Required Methods§

Source

fn active_leases(&self) -> Vec<LeaseSummary>

Source

fn pending_handoffs(&self) -> Vec<HandoffSummary>

Source

fn pending_interrupts(&self) -> Vec<InterruptSummary>

Source

fn tasks(&self) -> Vec<TaskSummary>

Supervisor task lifecycles, newest first. Empty when the coord feature is off so the TUI can render a “no supervisor” state without cfg.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§