pub struct CognitiveContainer { /* private fields */ }Expand description
A sealed cognitive container that orchestrates ingest, min-cut, spectral, evidence, and witness phases within a memory slab and epoch budget.
Implementations§
Source§impl CognitiveContainer
impl CognitiveContainer
Sourcepub fn new(config: ContainerConfig) -> Result<Self>
pub fn new(config: ContainerConfig) -> Result<Self>
Create and initialize a new container.
Sourcepub fn tick(&mut self, deltas: &[Delta]) -> Result<TickResult>
pub fn tick(&mut self, deltas: &[Delta]) -> Result<TickResult>
Execute one full epoch: ingest deltas, recompute min-cut, update spectral metrics, accumulate evidence, and produce a witness receipt.
Sourcepub fn config(&self) -> &ContainerConfig
pub fn config(&self) -> &ContainerConfig
Reference to the container configuration.
Sourcepub fn current_epoch(&self) -> u64
pub fn current_epoch(&self) -> u64
Current epoch counter (next epoch to be generated).
Sourcepub fn receipt_chain(&self) -> &[ContainerWitnessReceipt]
pub fn receipt_chain(&self) -> &[ContainerWitnessReceipt]
Slice of all retained witness receipts.
Sourcepub fn verify_chain(&self) -> VerificationResult
pub fn verify_chain(&self) -> VerificationResult
Verify the integrity of the internal witness chain.
Sourcepub fn snapshot(&self) -> ContainerSnapshot
pub fn snapshot(&self) -> ContainerSnapshot
Produce a serializable snapshot of the current container state.
Auto Trait Implementations§
impl Freeze for CognitiveContainer
impl RefUnwindSafe for CognitiveContainer
impl Send for CognitiveContainer
impl Sync for CognitiveContainer
impl Unpin for CognitiveContainer
impl UnsafeUnpin for CognitiveContainer
impl UnwindSafe for CognitiveContainer
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