pub struct IdentityStore { /* private fields */ }Implementations§
Source§impl IdentityStore
impl IdentityStore
Sourcepub fn open(dir: &Path) -> Result<Self>
pub fn open(dir: &Path) -> Result<Self>
dir is the app’s state directory; the ledger and its lock live inside it.
pub fn with_limits(self, limits: SearchLimits) -> Self
Sourcepub fn track(&self, path: &Path) -> Result<StableId>
pub fn track(&self, path: &Path) -> Result<StableId>
Start tracking path; returns a new stable id.
Sourcepub fn track_or_get(&self, path: &Path) -> Result<StableId>
pub fn track_or_get(&self, path: &Path) -> Result<StableId>
Same as track, but returns the existing id when this file (by FileKey)
is already tracked.
pub fn lookup(&self, id: &str) -> Result<Option<Tracked>>
pub fn forget(&self, id: &str) -> Result<bool>
Auto Trait Implementations§
impl Freeze for IdentityStore
impl RefUnwindSafe for IdentityStore
impl Send for IdentityStore
impl Sync for IdentityStore
impl Unpin for IdentityStore
impl UnsafeUnpin for IdentityStore
impl UnwindSafe for IdentityStore
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