pub struct Store { /* private fields */ }Implementations§
Source§impl Store
impl Store
pub fn open(path: &Path) -> Result<Self>
pub fn in_memory() -> Result<Self>
pub fn record( &self, command: &str, cwd: &str, exit_code: i32, observed_at_ms: i64, session_id: &str, ignore_leading_space: bool, ) -> Result<bool>
pub fn history_candidates( &self, prefix: &str, cwd: &str, limit: usize, successful_first: bool, ) -> Result<Vec<HistoryCandidate>>
pub fn history_inventory( &self, cwd: &str, limit: usize, successful_first: bool, ) -> Result<Vec<HistoryCandidate>>
pub fn import_zsh_history( &mut self, path: &Path, ignore_leading_space: bool, ) -> Result<ImportResult>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Store
impl !RefUnwindSafe for Store
impl !Sync for Store
impl !UnwindSafe for Store
impl Send for Store
impl Unpin for Store
impl UnsafeUnpin for Store
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