Trait event_store_core::storage::Storage
source · pub trait Storage: Debug + Default + Send + Unpin + 'static {
type Backend: Backend;
type EventBus: EventBus;
// Required methods
fn storage_name() -> &'static str;
fn create_stream(&mut self) -> BoxedStream;
fn backend(&mut self) -> &mut Self::Backend;
}
Expand description
A Storage
is responsible for storing and managing Stream
and Event
for a Backend