pub struct OutcomesRepo<'a> { /* private fields */ }Implementations§
Source§impl OutcomesRepo<'_>
impl OutcomesRepo<'_>
Sourcepub fn record(&self, new: NewOutcome) -> Result<OutcomeRecord>
pub fn record(&self, new: NewOutcome) -> Result<OutcomeRecord>
Record a verifiable outcome / reward signal for a trajectory. Append-only — the loop reads these; nothing mutates them after the fact.
pub fn get(&self, id: &str) -> Result<Option<OutcomeRecord>>
Sourcepub fn list_for_task(&self, task_id: &str) -> Result<Vec<OutcomeRecord>>
pub fn list_for_task(&self, task_id: &str) -> Result<Vec<OutcomeRecord>>
Every outcome recorded against one task, oldest first (the order the trajectory earned them).
pub fn list(&self, limit: usize) -> Result<Vec<OutcomeRecord>>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for OutcomesRepo<'a>
impl<'a> !Send for OutcomesRepo<'a>
impl<'a> !Sync for OutcomesRepo<'a>
impl<'a> !UnwindSafe for OutcomesRepo<'a>
impl<'a> Freeze for OutcomesRepo<'a>
impl<'a> Unpin for OutcomesRepo<'a>
impl<'a> UnsafeUnpin for OutcomesRepo<'a>
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