Skip to main content

Store

Trait Store 

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

Required Methods§

Source

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

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

Source

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

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§