pub struct RegionEntrySnapshot {
pub content: String,
pub tokens: usize,
pub kind: EntryKind,
pub metadata: Option<Value>,
pub key: Option<String>,
pub taint: TaintLevel,
}Expand description
One content entry within a region, captured at snapshot time.
Fields§
§content: String§tokens: usize§kind: EntryKindThe entry’s role/kind, so a snapshot round-trips faithfully when the
daemon reloads it on restart. Defaults to Text for older snapshots.
metadata: Option<Value>§key: Option<String>Key for HashMap region entries (file paths, section names, etc.)
taint: TaintLevelHow sensitive this entry is.
Persisted because taint was not, and a restore that dropped it silently
disarmed the gate: the reloaded run re-enabled taint tracking, found
every region back at Public, and let outbound tools through that had
been blocked a moment earlier. Any restart, crash-recovery, resume, or
page-in did it.
Defaults to Public for snapshots written before this field existed -
the same value they were being restored with anyway, so nothing is worse
than it was, and new runs are correct from their first write.
Trait Implementations§
Source§impl Clone for RegionEntrySnapshot
impl Clone for RegionEntrySnapshot
Source§fn clone(&self) -> RegionEntrySnapshot
fn clone(&self) -> RegionEntrySnapshot
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more