pub struct BuildTracker { /* private fields */ }Implementations§
Source§impl BuildTracker
impl BuildTracker
pub fn new() -> Self
pub fn disabled() -> Self
pub fn is_enabled(&self) -> bool
pub fn record_read(&self, path: PathBuf, content: &[u8])
pub fn record_read_with_hash(&self, path: PathBuf, hash: u64, mtime: SystemTime)
pub fn record_write(&self, path: PathBuf, content: &[u8])
pub fn merge_thread_locals(&self)
pub fn merge_all_threads(&self)
pub fn memo_get( &self, function: &'static str, input_hash: u64, ) -> Option<Vec<u8>>
pub fn memo_set(&self, function: &'static str, input_hash: u64, output: Vec<u8>)
pub fn get_reads(&self) -> HashMap<PathBuf, FileState>
pub fn get_writes(&self) -> HashMap<PathBuf, FileState>
pub fn clear(&self)
pub fn get_changed_files(&self, cached: &CachedDeps) -> Vec<PathBuf>
Trait Implementations§
Source§impl Debug for BuildTracker
impl Debug for BuildTracker
Auto Trait Implementations§
impl !Freeze for BuildTracker
impl !RefUnwindSafe for BuildTracker
impl Send for BuildTracker
impl Sync for BuildTracker
impl Unpin for BuildTracker
impl UnwindSafe for BuildTracker
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more