pub trait RunEventSource: Send + Sync {
// Required method
fn event_page(
&self,
run_id: RunId,
after: Option<RunEventCursor>,
limit: RunEventPageSize,
) -> Result<RunEventPage, RunEventSourceError>;
}Expand description
Stable read-only boundary implemented by durable journal adapters.
Required Methods§
Sourcefn event_page(
&self,
run_id: RunId,
after: Option<RunEventCursor>,
limit: RunEventPageSize,
) -> Result<RunEventPage, RunEventSourceError>
fn event_page( &self, run_id: RunId, after: Option<RunEventCursor>, limit: RunEventPageSize, ) -> Result<RunEventPage, RunEventSourceError>
Reads canonical events after an exclusive sequence cursor.
§Errors
Returns a typed source error when storage access or decoding fails.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".