pub struct Cache { /* private fields */ }Expand description
Fetched git profiles, shared by every target on the machine.
One process sees one commit per ref: each ref is asked of its remote once.
Implementations§
Source§impl Cache
impl Cache
Sourcepub fn at(dir: Utf8PathBuf) -> Self
pub fn at(dir: Utf8PathBuf) -> Self
A cache in dir.
Sourcepub fn on_fetch<F: Fn(Fetch<'_>) + Send + Sync + 'static>(self, hook: F) -> Self
pub fn on_fetch<F: Fn(Fetch<'_>) + Send + Sync + 'static>(self, hook: F) -> Self
This cache, calling hook around every remote access so a caller can show progress.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Cache
impl !UnwindSafe for Cache
impl Freeze for Cache
impl Send for Cache
impl Sync for Cache
impl Unpin for Cache
impl UnsafeUnpin for Cache
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