pub struct Accesses { /* private fields */ }Expand description
Every path a command’s process tree touched, each with its combined access kinds, in sorted path order.
Implementations§
Source§impl Accesses
impl Accesses
Sourcepub fn record(&mut self, path: AbsolutePath, kind: AccessKind)
pub fn record(&mut self, path: AbsolutePath, kind: AccessKind)
Record one access, combining it with earlier accesses to the same path.
Sourcepub fn record_kinds(&mut self, path: AbsolutePath, kinds: AccessKinds)
pub fn record_kinds(&mut self, path: AbsolutePath, kinds: AccessKinds)
Record several kinds of access to one path, combining them with earlier accesses to the same path.
Sourcepub fn get(&self, path: &AbsolutePath) -> Option<AccessKinds>
pub fn get(&self, path: &AbsolutePath) -> Option<AccessKinds>
The combined access kinds of path, if it was touched.
Sourcepub fn iter(&self) -> Iter<'_, AbsolutePath, AccessKinds> ⓘ
pub fn iter(&self) -> Iter<'_, AbsolutePath, AccessKinds> ⓘ
The touched paths with their combined access kinds, in sorted path order.
Trait Implementations§
impl Eq for Accesses
Source§impl FromIterator<(AbsolutePath, AccessKind)> for Accesses
impl FromIterator<(AbsolutePath, AccessKind)> for Accesses
Source§fn from_iter<I: IntoIterator<Item = (AbsolutePath, AccessKind)>>(
accesses: I,
) -> Self
fn from_iter<I: IntoIterator<Item = (AbsolutePath, AccessKind)>>( accesses: I, ) -> Self
Creates a value from an iterator. Read more
Source§impl<'a> IntoIterator for &'a Accesses
impl<'a> IntoIterator for &'a Accesses
Source§type IntoIter = Iter<'a, AbsolutePath, AccessKinds>
type IntoIter = Iter<'a, AbsolutePath, AccessKinds>
Which kind of iterator are we turning this into?
Source§type Item = (&'a AbsolutePath, &'a AccessKinds)
type Item = (&'a AbsolutePath, &'a AccessKinds)
The type of the elements being iterated over.
Source§impl IntoIterator for Accesses
impl IntoIterator for Accesses
Source§type IntoIter = IntoIter<AbsolutePath, AccessKinds>
type IntoIter = IntoIter<AbsolutePath, AccessKinds>
Which kind of iterator are we turning this into?
Source§type Item = (AbsolutePath, AccessKinds)
type Item = (AbsolutePath, AccessKinds)
The type of the elements being iterated over.
impl StructuralPartialEq for Accesses
Auto Trait Implementations§
impl Freeze for Accesses
impl RefUnwindSafe for Accesses
impl Send for Accesses
impl Sync for Accesses
impl Unpin for Accesses
impl UnsafeUnpin for Accesses
impl UnwindSafe for Accesses
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