pub(crate) trait Storage {
// Required methods
fn event_info(&self, id: usize) -> Option<&EventInfo>;
fn iter(&self) -> impl Iterator<Item = &EventInfo>;
}Expand description
An interface for retrieving the EventInfo for a particular eventId.
Required Methods§
Sourcefn event_info(&self, id: usize) -> Option<&EventInfo>
fn event_info(&self, id: usize) -> Option<&EventInfo>
Gets the EventInfo for id if it exists.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".