pub struct WatchedInputSnapshot { /* private fields */ }Expand description
WatchedInputSnapshot
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>
Capture the newest modification time across all watched inputs once.
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 newer than the captured watched 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 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WatchedInputSnapshot
impl Debug for WatchedInputSnapshot
impl 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