Skip to main content

PersistentSemanticObjects

Trait PersistentSemanticObjects 

Source
pub trait PersistentSemanticObjects {
    // Required methods
    fn put(&mut self, value: Datum) -> Result<StoredDatumRef, StoreError>;
    fn get(&self, meaning: &ContentId) -> Result<Datum, StoreError>;
    fn rebuild_index(&mut self) -> Result<Vec<StoredDatumRef>, StoreError>;
}
Expand description

Owned-return persistent Datum operations over the journal object backend.

Required Methods§

Source

fn put(&mut self, value: Datum) -> Result<StoredDatumRef, StoreError>

Stores a canonical value idempotently and returns both identities.

Source

fn get(&self, meaning: &ContentId) -> Result<Datum, StoreError>

Resolves a value by semantic identity and verifies that identity again.

Source

fn rebuild_index(&mut self) -> Result<Vec<StoredDatumRef>, StoreError>

Rebuilds and verifies the derived semantic-to-storage index.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§