pub struct LongTermStore { /* private fields */ }Implementations§
Source§impl LongTermStore
impl LongTermStore
pub async fn new(path: impl AsRef<Path>) -> Result<Self>
pub async fn add(&self, entry: &CompressedEntry) -> Result<()>
pub async fn load(&self) -> Result<Vec<CompressedEntry>>
pub async fn search( &self, query: &str, limit: usize, ) -> Result<Vec<CompressedEntry>>
pub async fn entry_count(&self) -> Result<usize>
pub fn path(&self) -> &Path
Trait Implementations§
Source§impl Clone for LongTermStore
impl Clone for LongTermStore
Source§fn clone(&self) -> LongTermStore
fn clone(&self) -> LongTermStore
Returns a duplicate of the value. Read more
1.0.0 · 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 Freeze for LongTermStore
impl RefUnwindSafe for LongTermStore
impl Send for LongTermStore
impl Sync for LongTermStore
impl Unpin for LongTermStore
impl UnsafeUnpin for LongTermStore
impl UnwindSafe for LongTermStore
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