pub enum BrainWave {
Gamma,
Beta,
Alpha,
Theta,
Delta,
}Expand description
The five brain-wave states, from most active to most dormant.
Variants§
Gamma
Full power. All subsystems, polyglot accelerators, inference. Event rate > 10/min.
Beta
Inference active, memory R/W, no background consolidation. Event rate > 0/min.
Alpha
No active requests for 30s+. Memory reads only. Citta heartbeat at 1/10 speed. No embeddings, no dreaming.
Theta
5+ min idle. Dream cycle runs once. Embeddings paused. After dream completes, transitions to Delta.
Delta
30+ min idle. Only LMDB mmap is warm. Zero CPU. Wake on stdin (MCP request) or scheduled timer.
Implementations§
Source§impl BrainWave
impl BrainWave
Sourcepub const fn allows_tools(self) -> bool
pub const fn allows_tools(self) -> bool
Returns true if this state allows tool execution.
Sourcepub const fn allows_consolidation(self) -> bool
pub const fn allows_consolidation(self) -> bool
Returns true if this state allows background consolidation.
Sourcepub const fn is_dormant(self) -> bool
pub const fn is_dormant(self) -> bool
Returns true if this state is dormant (zero CPU expected).
Trait Implementations§
impl Copy for BrainWave
Source§impl<'de> Deserialize<'de> for BrainWave
impl<'de> Deserialize<'de> for BrainWave
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for BrainWave
impl StructuralPartialEq for BrainWave
Auto Trait Implementations§
impl Freeze for BrainWave
impl RefUnwindSafe for BrainWave
impl Send for BrainWave
impl Sync for BrainWave
impl Unpin for BrainWave
impl UnsafeUnpin for BrainWave
impl UnwindSafe for BrainWave
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