pub struct Observation {
pub path: PathBuf,
pub access: AccessBits,
pub tracked: bool,
pub state: PathState,
pub attributes: Option<Attributes>,
}Expand description
One path a step touched, how it touched it, and its state when the step finished.
Fields§
§path: PathBufThe absolute path.
access: AccessBitsThe combined kinds of access.
tracked: boolWhether the path is under /proc or /sys and a track pattern matched it,
so its content counts as an input.
state: PathStateThe state of the path when the step finished.
attributes: Option<Attributes>The extended attributes of the path when the step finished, part of its
state, recorded when the step read or listed them (the xattr kind); None
for any other path, and for a path under /proc or /sys that no track
pattern matched.
Trait Implementations§
Source§impl Clone for Observation
impl Clone for Observation
Source§impl Debug for Observation
impl Debug for Observation
Source§impl<'bytes, Ctx> Decode<'bytes, Ctx> for Observation
impl<'bytes, Ctx> Decode<'bytes, Ctx> for Observation
Source§impl<Ctx> Encode<Ctx> for Observation
impl<Ctx> Encode<Ctx> for Observation
impl Eq for Observation
Source§impl PartialEq for Observation
impl PartialEq for Observation
impl StructuralPartialEq for Observation
Auto Trait Implementations§
impl Freeze for Observation
impl RefUnwindSafe for Observation
impl Send for Observation
impl Sync for Observation
impl Unpin for Observation
impl UnsafeUnpin for Observation
impl UnwindSafe for Observation
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.