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 moreSource§impl Debug for RegionEntrySnapshot
impl Debug for RegionEntrySnapshot
Source§impl<'de> Deserialize<'de> for RegionEntrySnapshot
impl<'de> Deserialize<'de> for RegionEntrySnapshot
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RegionEntrySnapshot, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RegionEntrySnapshot, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for RegionEntrySnapshot
impl PartialEq for RegionEntrySnapshot
Source§impl Serialize for RegionEntrySnapshot
impl Serialize for RegionEntrySnapshot
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for RegionEntrySnapshot
Auto Trait Implementations§
impl Freeze for RegionEntrySnapshot
impl RefUnwindSafe for RegionEntrySnapshot
impl Send for RegionEntrySnapshot
impl Sync for RegionEntrySnapshot
impl Unpin for RegionEntrySnapshot
impl UnsafeUnpin for RegionEntrySnapshot
impl UnwindSafe for RegionEntrySnapshot
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ConditionalSend for Twhere
T: Send,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more