Struct JournalEntry
#[non_exhaustive]pub struct JournalEntry {
pub seq: u64,
pub kind: String,
pub cause: Option<u64>,
pub origin: Option<Origin>,
pub input: Option<Arc<dyn Any + Sync + Send>>,
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
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::origin set), in
its origin’s.
origin: Option<Origin>Where it was published: None here, else the origin
the crossing contract’s Relay::ingest was given (another process, an agent’s
session). Every entry taken in has one.
input: Option<Arc<dyn Any + Sync + Send>>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§
§impl Clone for JournalEntry
impl Clone for JournalEntry
§fn clone(&self) -> JournalEntry
fn clone(&self) -> JournalEntry
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more