pub struct ReloadReport {
pub mem: String,
pub head_before: String,
pub head_after: String,
pub entities_loaded: usize,
pub changed_entity_ids: Vec<EntityId>,
}Expand description
Per-mem reload outcome — produced by [Engine::reload_one_mem]
and surfaced verbatim in the memstead_reload MCP tool’s response when
an explicit operator-triggered reload runs against a single mem.
Auto-reloads on the read path consume this internally and emit a
WarningHint::MemReloaded (which carries mem, old_head,
new_head, entities_loaded — the diff list is intentionally
omitted from the lean warning payload; agents that need it call
memstead_changes_since themselves with the supplied old_head).
head_before / head_after are hex-rendered SHAs (or
EMPTY_TREE_SHA for the no-baseline case) so the wire shape
matches what memstead_changes_since already accepts as since.
changed_entity_ids is the list of non-stub IDs whose
content_hash differs between the pre- and post-reload store
snapshots, plus every newly-added or newly-removed id — same
semantic as ReloadResult { added, changed, removed } flattened
into a single set so callers don’t have to merge three lists.
Fields§
§mem: String§head_before: String§head_after: String§entities_loaded: usize§changed_entity_ids: Vec<EntityId>Trait Implementations§
Source§impl Clone for ReloadReport
impl Clone for ReloadReport
Source§fn clone(&self) -> ReloadReport
fn clone(&self) -> ReloadReport
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 ReloadReport
impl Debug for ReloadReport
Auto Trait Implementations§
impl Freeze for ReloadReport
impl RefUnwindSafe for ReloadReport
impl Send for ReloadReport
impl Sync for ReloadReport
impl Unpin for ReloadReport
impl UnsafeUnpin for ReloadReport
impl UnwindSafe for ReloadReport
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> DowncastSync for T
impl<T> DowncastSync for T
impl<T> Fruit for T
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