pub struct HistoryStore { /* private fields */ }Implementations§
Source§impl HistoryStore
impl HistoryStore
pub fn new(path: impl Into<PathBuf>) -> Self
pub fn platform_default() -> Result<Self>
pub fn path(&self) -> &Path
pub async fn entries(&self) -> Result<Vec<HistoryEntry>>
pub async fn update(&self, entry: HistoryEntry) -> Result<()>
pub async fn clear(&self) -> Result<()>
Trait Implementations§
Source§impl Clone for HistoryStore
impl Clone for HistoryStore
Source§fn clone(&self) -> HistoryStore
fn clone(&self) -> HistoryStore
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 HistoryStore
impl RefUnwindSafe for HistoryStore
impl Send for HistoryStore
impl Sync for HistoryStore
impl Unpin for HistoryStore
impl UnsafeUnpin for HistoryStore
impl UnwindSafe for HistoryStore
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