Skip to main content

Store

Trait Store 

Source
pub trait Store: Send + Sync {
    // Required methods
    fn metadata_as_ipc(&self) -> Result<Vec<IpcMessageWithId>>;
    fn update(&self, msg: &IpcMessageWithId) -> Result<()>;
}

Required Methods§

Source

fn metadata_as_ipc(&self) -> Result<Vec<IpcMessageWithId>>

Returns the metadata for this store as a vec of ipc messages

Source

fn update(&self, msg: &IpcMessageWithId) -> Result<()>

Updates this store with an ipc message

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§