pub struct Storage { /* private fields */ }Implementations§
Source§impl Storage
impl Storage
pub async fn load(write_path: PathBuf) -> Result<Self>
pub async fn load_with_options( write_path: PathBuf, options: StorageOptions, ) -> Result<Self>
pub async fn insert(&self, run: ComparisonRun) -> Result<()>
pub async fn refresh(&self) -> Result<bool>
pub async fn list(&self) -> Vec<ComparisonRunListItem>
pub async fn list_page( &self, limit: usize, offset: usize, ) -> Vec<ComparisonRunListItem>
pub async fn filtered_page( &self, filter: &RunFilter, limit: usize, offset: usize, ) -> RunPage
pub async fn get(&self, id: Uuid) -> Option<ComparisonRun>
pub async fn stats(&self) -> StatsSummary
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Storage
impl !UnwindSafe for Storage
impl Freeze for Storage
impl Send for Storage
impl Sync for Storage
impl Unpin for Storage
impl UnsafeUnpin for Storage
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