pub enum Event<'a> {
Open {
dd: &'a str,
mode: OpenMode,
path: &'a Path,
},
Close {
dd: &'a str,
path: &'a Path,
},
Load {
program: &'a str,
source: Option<&'a Path>,
},
Paragraph {
program: &'a str,
name: &'a str,
index: usize,
},
Sink {
kind: &'static str,
file: &'a str,
line: u32,
operand: &'a str,
},
}Expand description
What a run did that its evidence journal records: each file as it is opened and closed, each program CALL loads, with the source it was read from when a library supplied it, and each operation an input could steer, with its operand as the program’s code page reads it.
Variants§
Open
Close
Load
Paragraph
Control entering paragraph (or section header) index of program at its start.
Sink
kind is cobolwork’s name for the sink (dynamic-program-load, log, …); file is the
library file or COPY member the operation is in, empty for the first program’s own source.
Auto Trait Implementations§
impl<'a> Freeze for Event<'a>
impl<'a> RefUnwindSafe for Event<'a>
impl<'a> Send for Event<'a>
impl<'a> Sync for Event<'a>
impl<'a> Unpin for Event<'a>
impl<'a> UnsafeUnpin for Event<'a>
impl<'a> UnwindSafe for Event<'a>
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