Skip to main content

BrainView

Trait BrainView 

Source
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§

Source

fn gate_mode(&self) -> BrainGateMode

Source

fn recent_decisions(&self, n: usize) -> Vec<DecisionSummary>

Most recent n decisions, newest first.

Source

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".

Implementors§