Skip to main content

Journal

Trait Journal 

Source
pub trait Journal: Send + Sync {
    // Required method
    fn record(&self, event: &RunEvent) -> Result<(), JournalError>;
}
Expand description

Receives immutable runtime events.

Required Methods§

Source

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".

Implementors§