Skip to main content

MessageStoreFactory

Trait MessageStoreFactory 

Source
pub trait MessageStoreFactory: Send + Sync {
    // Required method
    fn create(&self, session_id: &SessionId) -> Result<Box<dyn MessageStore>>;
}

Required Methods§

Source

fn create(&self, session_id: &SessionId) -> Result<Box<dyn MessageStore>>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§