pub trait Journal: Send + Sync {
// Required method
fn record(&self, event: &RunEvent) -> Result<(), JournalError>;
}Expand description
Receives immutable runtime events.
Required Methods§
Sourcefn record(&self, event: &RunEvent) -> Result<(), JournalError>
fn record(&self, event: &RunEvent) -> Result<(), JournalError>
Records one event.
§Errors
Returns JournalError when the backing store cannot durably accept
the event.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".