pub struct FsEvalStore { /* private fields */ }Expand description
Filesystem-backed eval store using JSON files.
Directory layout:
{dir}/sets/{id}.json
{dir}/results/{eval_set_id}/{timestamp}.jsonImplementations§
Trait Implementations§
Source§impl EvalStore for FsEvalStore
impl EvalStore for FsEvalStore
Source§fn save_result(&self, result: &EvalSetResult) -> Result<(), EvalError>
fn save_result(&self, result: &EvalSetResult) -> Result<(), EvalError>
Save an eval set result.
Source§fn load_result(
&self,
eval_set_id: &str,
timestamp: u64,
) -> Result<EvalSetResult, EvalError>
fn load_result( &self, eval_set_id: &str, timestamp: u64, ) -> Result<EvalSetResult, EvalError>
Load a specific result by eval set ID and timestamp.
Auto Trait Implementations§
impl Freeze for FsEvalStore
impl RefUnwindSafe for FsEvalStore
impl Send for FsEvalStore
impl Sync for FsEvalStore
impl Unpin for FsEvalStore
impl UnsafeUnpin for FsEvalStore
impl UnwindSafe for FsEvalStore
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