pub struct CacheManager { /* private fields */ }Implementations§
Source§impl CacheManager
impl CacheManager
Sourcepub fn new(
repo_root: &Path,
staged_only: bool,
user_message: Option<&str>,
backend: &str,
model: &str,
) -> Option<Self>
pub fn new( repo_root: &Path, staged_only: bool, user_message: Option<&str>, backend: &str, model: &str, ) -> Option<Self>
Build a new CacheManager, computing fingerprints and state key. Returns None if cache dir can’t be resolved (graceful degradation).
Sourcepub fn lookup(&self) -> CacheLookup
pub fn lookup(&self) -> CacheLookup
Look up the cache. Returns ExactHit, IncrementalHit, or Miss.
Sourcepub fn store(&self, plan: &CommitPlan, backend: &str, model: &str)
pub fn store(&self, plan: &CommitPlan, backend: &str, model: &str)
Store a plan in the cache.
pub fn dir(&self) -> &Path
pub fn repo_root(&self) -> &Path
Auto Trait Implementations§
impl Freeze for CacheManager
impl RefUnwindSafe for CacheManager
impl Send for CacheManager
impl Sync for CacheManager
impl Unpin for CacheManager
impl UnsafeUnpin for CacheManager
impl UnwindSafe for CacheManager
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