pub trait BrainView: Send + Sync {
// Required methods
fn gate_mode(&self) -> BrainGateMode;
fn recent_decisions(&self, n: usize) -> Vec<DecisionSummary>;
fn decision_count(&self) -> usize;
}Expand description
Read access to the brain’s decision history and current mode.
Required Methods§
fn gate_mode(&self) -> BrainGateMode
Sourcefn recent_decisions(&self, n: usize) -> Vec<DecisionSummary>
fn recent_decisions(&self, n: usize) -> Vec<DecisionSummary>
Most recent n decisions, newest first.
Sourcefn decision_count(&self) -> usize
fn decision_count(&self) -> usize
Total count of brain decisions on disk. Drives the “decisions: N” status line.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".