pub struct TraceStore { /* private fields */ }Expand description
Implementations§
Source§impl TraceStore
impl TraceStore
Sourcepub fn new(dir: PathBuf, enabled: bool) -> Self
pub fn new(dir: PathBuf, enabled: bool) -> Self
A store rooted at dir. enabled = false disables both read and write (--no-cache).
Sourcepub fn disabled() -> Self
pub fn disabled() -> Self
An always-missing store (used when the cache key material can’t be computed, so the run still proceeds — every case just re-runs and nothing is cached).
pub fn is_enabled(&self) -> bool
pub fn dir(&self) -> &Path
Auto Trait Implementations§
impl Freeze for TraceStore
impl RefUnwindSafe for TraceStore
impl Send for TraceStore
impl Sync for TraceStore
impl Unpin for TraceStore
impl UnsafeUnpin for TraceStore
impl UnwindSafe for TraceStore
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