pub struct AccessOutcomes { /* private fields */ }Expand description
How the file accesses of a task program ended, for the observation report of
kizz run --output: each path with its access kinds, and each kind with how
the operations that made it ended, before the errors are named.
Implementations§
Source§impl AccessOutcomes
impl AccessOutcomes
Sourcepub fn note(
&mut self,
path: AbsolutePath,
kind: AccessKind,
error: Option<&Error>,
)
pub fn note( &mut self, path: AbsolutePath, kind: AccessKind, error: Option<&Error>, )
Note that an operation touched path in the way kind names, and failed
with error, or succeeded when it is None.
Sourcepub fn observations(&self, error_name: impl Fn(i32) -> String) -> Observations
pub fn observations(&self, error_name: impl Fn(i32) -> String) -> Observations
The accesses as observations: ok, the name that error_name gives the
number of an error, such as the tracer’s error-name query, or unknown for
an error without a number.
Trait Implementations§
Source§impl Clone for AccessOutcomes
impl Clone for AccessOutcomes
Source§impl Debug for AccessOutcomes
impl Debug for AccessOutcomes
Source§impl Default for AccessOutcomes
impl Default for AccessOutcomes
impl Eq for AccessOutcomes
Source§impl PartialEq for AccessOutcomes
impl PartialEq for AccessOutcomes
impl StructuralPartialEq for AccessOutcomes
Auto Trait Implementations§
impl Freeze for AccessOutcomes
impl RefUnwindSafe for AccessOutcomes
impl Send for AccessOutcomes
impl Sync for AccessOutcomes
impl Unpin for AccessOutcomes
impl UnsafeUnpin for AccessOutcomes
impl UnwindSafe for AccessOutcomes
Blanket Implementations§
impl<T> AsTypeStaticRegistered for T
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.§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
Checks if this value is equivalent to the given key. Read more
§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
Checks if this value is equivalent to the given key. Read more
impl<T> HasTyVTable for Twhere
T: ?Sized,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more