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 Eventfor a Backend

Required Associated Types§

Required Methods§

source

fn storage_name() -> &'static str

source

fn create_stream(&mut self) -> BoxedStream

source

fn backend(&mut self) -> &mut Self::Backend

Implementors§