pub trait FetchEvent:
Copy
+ Send
+ Sync {
// Required methods
fn get<T>(
self,
event_id: &EventId,
) -> impl Future<Output = Result<T>> + Send
where T: for<'de> Deserialize<'de> + Send;
fn exists(
self,
event_id: &EventId,
) -> impl Future<Output = Result<bool>> + Send;
}Expand description
Reads events through a copyable handle to their storage.
Callers borrow identifiers and choose the fields they need to decode. Implementations apply the caller’s missing-event policy.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".