pub struct HeatEntry {
pub path: String,
pub access_count: u32,
pub last_access: String,
pub total_tokens_saved: u64,
pub total_original_tokens: u64,
pub avg_compression_ratio: f32,
pub agent_accesses: HashMap<String, u32>,
}Fields§
§path: String§access_count: u32§last_access: String§total_tokens_saved: u64§total_original_tokens: u64§avg_compression_ratio: f32§agent_accesses: HashMap<String, u32>Per-agent access counts — the stigmergic pheromone field. When multiple agents access the same file, downstream consumers can identify shared context (co-access patterns) and compute credit for useful preloads.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for HeatEntry
impl<'de> Deserialize<'de> for HeatEntry
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<HeatEntry, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<HeatEntry, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for HeatEntry
impl Serialize for HeatEntry
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,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Forget for HeatEntry
impl Freeze for HeatEntry
impl Move for HeatEntry
impl RefUnwindSafe for HeatEntry
impl Send for HeatEntry
impl Sync for HeatEntry
impl Unpin for HeatEntry
impl UnsafeUnpin for HeatEntrywhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<(String, u32)>: UnsafeUnpin,
impl UnwindSafe for HeatEntry
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
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> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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> ⓘ
Converts
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> ⓘ
Converts
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