pub struct TypedPagesState {
pub registry: InvariantRegistry,
pub audit_sink: Option<CompactionAuditSink>,
pub is_active: bool,
}Expand description
Shared runtime state for typed-page compaction, created once at agent startup.
Bundles the invariant registry and optional audit sink so they can be shared
via Arc across compaction calls without per-call allocation.
Fields§
§registry: InvariantRegistryInvariant registry shared across all compaction calls.
audit_sink: Option<CompactionAuditSink>Optional JSONL audit sink. None when audit is disabled.
is_active: boolWhether enforcement is Active (pointer-replace SystemContext + batch assertions).
false = Observe mode (classify and audit only, no behavioral change).
Auto Trait Implementations§
impl Freeze for TypedPagesState
impl !RefUnwindSafe for TypedPagesState
impl Send for TypedPagesState
impl Sync for TypedPagesState
impl Unpin for TypedPagesState
impl UnsafeUnpin for TypedPagesState
impl !UnwindSafe for TypedPagesState
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