Skip to main content

Storage

Trait Storage 

Source
pub trait Storage: Send + Sync {
    // Required methods
    fn journal(&self) -> &dyn JournalStore;
    fn graph(&self, actor: &NamedNode) -> &dyn GraphStore;
    fn graphs(&self) -> Vec<&dyn GraphStore>;
}
Expand description

The journal store and graph stores of a node.

Required Methods§

Source

fn journal(&self) -> &dyn JournalStore

The journal store.

Source

fn graph(&self, actor: &NamedNode) -> &dyn GraphStore

The graph store holding actor’s current state, snapshots and records.

Source

fn graphs(&self) -> Vec<&dyn GraphStore>

Every graph store, for scans across actors (pending timers, mailboxes).

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl Storage for MemoryStore

Source§

fn journal(&self) -> &dyn JournalStore

Source§

fn graph(&self, _actor: &NamedNode) -> &dyn GraphStore

Source§

fn graphs(&self) -> Vec<&dyn GraphStore>

Source§

impl<S: Storage + ?Sized> Storage for Arc<S>

Source§

fn journal(&self) -> &dyn JournalStore

Source§

fn graph(&self, actor: &NamedNode) -> &dyn GraphStore

Source§

fn graphs(&self) -> Vec<&dyn GraphStore>

Implementors§