#[non_exhaustive]pub enum LogEvent {
SessionStart,
CapabilityResolved,
Resolve,
Fetch,
StoreWrite,
SessionEnd,
}Expand description
Event class for a log row (PROVENANCE_LOG.md §3).
Note: result-status (ok/err/denied) lives in LogResult, NOT in
the event variant. So Fetch covers both successful and failed fetch
attempts; the row’s result distinguishes them.
non_exhaustive so adding new variants is non-breaking.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
SessionStart
Process started; first row of a new session.
CapabilityResolved
Capability resolution finished (allowed / denied / which env var).
Resolve
Reference resolved to a fetch URL.
Fetch
Fetch attempt (success or failure determined by result).
StoreWrite
Store write attempt (success or failure determined by result).
SessionEnd
Process ended cleanly.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LogEvent
impl<'de> Deserialize<'de> for LogEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for LogEvent
impl Eq for LogEvent
impl StructuralPartialEq for LogEvent
Auto Trait Implementations§
impl Freeze for LogEvent
impl RefUnwindSafe for LogEvent
impl Send for LogEvent
impl Sync for LogEvent
impl Unpin for LogEvent
impl UnsafeUnpin for LogEvent
impl UnwindSafe for LogEvent
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