pub struct ExecutionStore { /* private fields */ }Implementations§
Source§impl ExecutionStore
impl ExecutionStore
pub fn open(path: &PathBuf) -> Result<Self>
pub fn in_memory() -> Result<Self>
pub fn record(&self, rec: &ExecutionRecord) -> Result<()>
pub fn total_saved(&self) -> Result<usize>
pub fn summary(&self) -> Result<Vec<(String, usize, usize, f64)>>
pub fn recent(&self, limit: usize) -> Result<Vec<ExecutionRecord>>
pub fn new_record( program: &str, args: &[String], tokens_before: usize, tokens_after: usize, exit_code: i32, duration_ms: u64, ) -> ExecutionRecord
Auto Trait Implementations§
impl !Freeze for ExecutionStore
impl !RefUnwindSafe for ExecutionStore
impl Send for ExecutionStore
impl !Sync for ExecutionStore
impl Unpin for ExecutionStore
impl UnsafeUnpin for ExecutionStore
impl !UnwindSafe for ExecutionStore
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