Skip to main content

EventLog

Trait EventLog 

Source
pub trait EventLog: Sealed {
    // Required methods
    fn record(&self, event: &NewEvent<'_>) -> Result<u64, RecordError>;
    fn source(&self) -> &dyn EventSource;
}
Available on crate feature rustcrypto only.
Expand description

The event store, as the runtime reaches it: RefCell<EventStore<…>>.

Required Methods§

Source

fn record(&self, event: &NewEvent<'_>) -> Result<u64, RecordError>

Records one event (§7.14).

Source

fn source(&self) -> &dyn EventSource

The store as reads and reports see it.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<const A: usize, const B: usize, const D: usize> EventLog for RefCell<EventStore<A, B, D>>

Source§

fn record(&self, event: &NewEvent<'_>) -> Result<u64, RecordError>

Source§

fn source(&self) -> &dyn EventSource

Implementors§