pub struct TrackedRead {
pub path: FilePath,
pub outcome: ReadOutcome,
}Expand description
One file a rule reached for while checking another.
Fields§
§path: FilePathPath relative to the project root.
outcome: ReadOutcomeWhat was found there.
Implementations§
Source§impl TrackedRead
impl TrackedRead
Sourcepub const fn found(path: FilePath, hash: ContentHash) -> Self
pub const fn found(path: FilePath, hash: ContentHash) -> Self
A read that found a file.
Sourcepub const fn refused(path: FilePath) -> Self
pub const fn refused(path: FilePath) -> Self
A read that was refused because the path left the root through a symlink.
Sourcepub const fn hash(&self) -> Option<ContentHash>
pub const fn hash(&self) -> Option<ContentHash>
The hash of what was read, or None for either answer that read nothing.
For the callers that only ever asked “same bytes as before?”. Anything deciding what
to do about a dependency has to match on Self::outcome instead: absence and
refusal are checked against the filesystem in two different ways.
Trait Implementations§
Source§impl Clone for TrackedRead
impl Clone for TrackedRead
Source§fn clone(&self) -> TrackedRead
fn clone(&self) -> TrackedRead
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 moreSource§impl Debug for TrackedRead
impl Debug for TrackedRead
impl Eq for TrackedRead
Source§impl Hash for TrackedRead
impl Hash for TrackedRead
Source§impl Ord for TrackedRead
impl Ord for TrackedRead
Source§fn cmp(&self, other: &TrackedRead) -> Ordering
fn cmp(&self, other: &TrackedRead) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for TrackedRead
impl PartialEq for TrackedRead
Source§impl PartialOrd for TrackedRead
impl PartialOrd for TrackedRead
impl StructuralPartialEq for TrackedRead
Auto Trait Implementations§
impl Freeze for TrackedRead
impl RefUnwindSafe for TrackedRead
impl Send for TrackedRead
impl Sync for TrackedRead
impl Unpin for TrackedRead
impl UnsafeUnpin for TrackedRead
impl UnwindSafe for TrackedRead
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