pub struct WatchedInputSnapshot { /* private fields */ }Expand description
Newest modification time captured across a set of watched input trees.
Implementations§
Source§impl WatchedInputSnapshot
impl WatchedInputSnapshot
Sourcepub fn capture(
workspace_root: &Path,
watched_relative_paths: &[&str],
) -> Result<Self>
pub fn capture( workspace_root: &Path, watched_relative_paths: &[&str], ) -> Result<Self>
Recursively capture the newest modification time across all watched inputs.
Sourcepub fn artifact_is_fresh(self, artifact_path: &Path) -> Result<bool>
pub fn artifact_is_fresh(self, artifact_path: &Path) -> Result<bool>
Check whether one artifact is at least as new as the captured inputs.
Trait Implementations§
Source§impl Clone for WatchedInputSnapshot
impl Clone for WatchedInputSnapshot
Source§fn clone(&self) -> WatchedInputSnapshot
fn clone(&self) -> WatchedInputSnapshot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for WatchedInputSnapshot
Auto Trait Implementations§
impl Freeze for WatchedInputSnapshot
impl RefUnwindSafe for WatchedInputSnapshot
impl Send for WatchedInputSnapshot
impl Sync for WatchedInputSnapshot
impl Unpin for WatchedInputSnapshot
impl UnsafeUnpin for WatchedInputSnapshot
impl UnwindSafe for WatchedInputSnapshot
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