pub struct Journal {
pub events: Vec<TraceEvent>,
}Expand description
A parsed journal: the recording of one session, including its resumes, in
file order. The oracles (crate::oracle::run_oracles) judge it; this
type only carries it.
Fields§
§events: Vec<TraceEvent>Implementations§
Source§impl Journal
impl Journal
Sourcepub fn from_ndjson(input: &str) -> Result<Self, JournalError>
pub fn from_ndjson(input: &str) -> Result<Self, JournalError>
Parse an NDJSON journal. Blank lines are permitted (trailing newline,
human editing); anything else that does not parse as a TraceEvent
is an error naming its line.
Trait Implementations§
impl StructuralPartialEq for Journal
Auto Trait Implementations§
impl Freeze for Journal
impl RefUnwindSafe for Journal
impl Send for Journal
impl Sync for Journal
impl Unpin for Journal
impl UnsafeUnpin for Journal
impl UnwindSafe for Journal
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