#[non_exhaustive]pub struct JournalEntry {
pub seq: u64,
pub kind: String,
pub cause: Option<u64>,
pub source: Option<String>,
pub input: Option<AnyInput>,
pub text: Option<String>,
}Expand description
One event of a journal: what happened, its number, what caused it.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.seq: u64Its number in this journal: from 1, increasing by one, never reused while the process runs.
kind: StringIts kind: the event point’s id, or a kind the journal keeps with no point (a fact recorded by the implementation, an event relayed from a process whose point this one does not declare).
cause: Option<u64>The entry that caused it, if one did: a number in this journal,
or, for an entry relayed in (JournalEntry::source set), in
its source’s.
source: Option<String>Where it was published: None here, else the source a
Relay::ingest named (another process).
input: Option<AnyInput>Its input, typed, when this process holds it: published here, or relayed and decoded with its point’s codec.
text: Option<String>Its input as text, when it has one: relayed in, or written by a codec.
Implementations§
Trait Implementations§
Source§impl Clone for JournalEntry
impl Clone for JournalEntry
Auto Trait Implementations§
impl !RefUnwindSafe for JournalEntry
impl !UnwindSafe for JournalEntry
impl Forget for JournalEntry
impl Freeze for JournalEntry
impl Move for JournalEntry
impl Send for JournalEntry
impl Sync for JournalEntry
impl Unpin for JournalEntry
impl UnsafeUnpin for JournalEntry
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