pub struct GainEngine {
pub stats: StatsStore,
pub costs: CostStore,
pub heatmap: HeatMap,
pub pricing: ModelPricing,
pub events: Vec<LeanCtxEvent>,
pub session: Option<SessionState>,
}Fields§
§stats: StatsStore§costs: CostStore§heatmap: HeatMap§pricing: ModelPricing§events: Vec<LeanCtxEvent>§session: Option<SessionState>Implementations§
Source§impl GainEngine
impl GainEngine
pub fn load() -> GainEngine
pub fn summary(&self, model: Option<&str>) -> GainSummary
pub fn gain_score(&self, model: Option<&str>) -> GainScore
pub fn task_breakdown(&self) -> Vec<TaskGainRow>
pub fn heatmap_gains(&self, limit: usize) -> Vec<FileGainRow>
Trait Implementations§
Source§impl Clone for GainEngine
impl Clone for GainEngine
Source§fn clone(&self) -> GainEngine
fn clone(&self) -> GainEngine
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for GainEngine
impl !UnwindSafe for GainEngine
impl Forget for GainEngine
impl Freeze for GainEnginewhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<(String, CommandStats)>: Freeze,
PhantomData<DayStats>: Freeze,
PhantomData<(String, u64)>: Freeze,
PhantomData<CepSessionSnapshot>: Freeze,
PhantomData<(String, TrafficClass)>: Freeze,
PhantomData<(String, AgentCost)>: Freeze,
PhantomData<(String, ToolCost)>: Freeze,
PhantomData<SessionCostSnapshot>: Freeze,
PhantomData<(String, HeatEntry)>: Freeze,
PhantomData<(String, ModelCost)>: Freeze,
PhantomData<LeanCtxEvent>: Freeze,
*const CanonicalSession is !null: Freeze,
PhantomData<CanonicalSession>: Freeze,
*const ArcInner<SaveGate> is !null: Freeze,
PhantomData<ArcInner<SaveGate>>: Freeze,
PhantomData<Finding>: Freeze,
PhantomData<Decision>: Freeze,
PhantomData<KnowledgeFact>: Freeze,
PhantomData<FileTouched>: Freeze,
PhantomData<ProgressEntry>: Freeze,
PhantomData<String>: Freeze,
PhantomData<EvidenceRecord>: Freeze,
PhantomData<IntentRecord>: Freeze,
*const LeafNode<String, SessionDayCounts> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, SessionDayCounts)>>: Freeze,
PhantomData<PlaybookEntry>: Freeze,
*const LeafNode<InputRef, SetValZST> is !null: Freeze,
PhantomData<Box<(InputRef, SetValZST)>>: Freeze,
impl Move for GainEngine
impl Send for GainEnginewhere
RawVecInner: Send,
RawTable<(String, CommandStats)>: Send,
RawTable<(String, u64)>: Send,
RawTable<(String, TrafficClass)>: Send,
RawTable<(String, AgentCost)>: Send,
RawTable<(String, ToolCost)>: Send,
RawTable<(String, HeatEntry)>: Send,
RawTable<(String, ModelCost)>: Send,
BoxRaw<CanonicalSession>: Send,
Arc<SaveGate>: Send,
BoxRaw<ProviderOrigin>: Send,
NodeRef<Owned, String, SessionDayCounts, LeafOrInternal>: Send,
BoxRaw<(String, SessionDayCounts)>: Send,
NodeRef<Owned, InputRef, SetValZST, LeafOrInternal>: Send,
BoxRaw<(InputRef, SetValZST)>: Send,
impl Sync for GainEnginewhere
RawVecInner: Sync,
RawTable<(String, CommandStats)>: Sync,
RawTable<(String, u64)>: Sync,
RawTable<(String, TrafficClass)>: Sync,
RawTable<(String, AgentCost)>: Sync,
RawTable<(String, ToolCost)>: Sync,
RawTable<(String, HeatEntry)>: Sync,
RawTable<(String, ModelCost)>: Sync,
BoxRaw<CanonicalSession>: Sync,
Arc<SaveGate>: Sync,
BoxRaw<ProviderOrigin>: Sync,
NodeRef<Owned, String, SessionDayCounts, LeafOrInternal>: Sync,
BoxRaw<(String, SessionDayCounts)>: Sync,
NodeRef<Owned, InputRef, SetValZST, LeafOrInternal>: Sync,
BoxRaw<(InputRef, SetValZST)>: Sync,
impl Unpin for GainEnginewhere
*const u8 is !null: Unpin,
Box<CanonicalSession>: Unpin,
Arc<SaveGate>: Unpin,
Box<ProviderOrigin>: Unpin,
*const LeafNode<String, SessionDayCounts> is !null: Unpin,
Box<(String, SessionDayCounts)>: Unpin,
*const LeafNode<InputRef, SetValZST> is !null: Unpin,
Box<(InputRef, SetValZST)>: Unpin,
impl UnsafeUnpin for GainEnginewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<(String, CommandStats)>: UnsafeUnpin,
PhantomData<DayStats>: UnsafeUnpin,
PhantomData<(String, u64)>: UnsafeUnpin,
PhantomData<CepSessionSnapshot>: UnsafeUnpin,
PhantomData<(String, TrafficClass)>: UnsafeUnpin,
PhantomData<(String, AgentCost)>: UnsafeUnpin,
PhantomData<(String, ToolCost)>: UnsafeUnpin,
PhantomData<SessionCostSnapshot>: UnsafeUnpin,
PhantomData<(String, HeatEntry)>: UnsafeUnpin,
PhantomData<(String, ModelCost)>: UnsafeUnpin,
PhantomData<LeanCtxEvent>: UnsafeUnpin,
*const CanonicalSession is !null: UnsafeUnpin,
PhantomData<CanonicalSession>: UnsafeUnpin,
*const ArcInner<SaveGate> is !null: UnsafeUnpin,
PhantomData<ArcInner<SaveGate>>: UnsafeUnpin,
PhantomData<Finding>: UnsafeUnpin,
PhantomData<Decision>: UnsafeUnpin,
PhantomData<KnowledgeFact>: UnsafeUnpin,
PhantomData<FileTouched>: UnsafeUnpin,
PhantomData<ProgressEntry>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<EvidenceRecord>: UnsafeUnpin,
PhantomData<IntentRecord>: UnsafeUnpin,
*const LeafNode<String, SessionDayCounts> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, SessionDayCounts)>>: UnsafeUnpin,
PhantomData<PlaybookEntry>: UnsafeUnpin,
*const LeafNode<InputRef, SetValZST> is !null: UnsafeUnpin,
PhantomData<Box<(InputRef, SetValZST)>>: UnsafeUnpin,
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,
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