pub struct SplitStorage<J, G> {
pub journal: J,
pub graph: G,
}Expand description
A journal store and a separate graph store (for example a journal store without state in appends and an Oxigraph graph store). Current state is then written after each append.
Fields§
§journal: JThe journal store.
graph: GThe graph store.
Trait Implementations§
Source§impl<J, G> Debug for SplitStorage<J, G>
impl<J, G> Debug for SplitStorage<J, G>
Source§impl<J: JournalStore, G: GraphStore> Storage for SplitStorage<J, G>
impl<J: JournalStore, G: GraphStore> Storage for SplitStorage<J, G>
Source§fn journal(&self) -> &dyn JournalStore
fn journal(&self) -> &dyn JournalStore
The journal store.
Source§fn graph(&self, _actor: &NamedNode) -> &dyn GraphStore
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>
fn graphs(&self) -> Vec<&dyn GraphStore>
Every graph store, for scans across actors (pending timers, mailboxes).
Auto Trait Implementations§
impl<J, G> Forget for SplitStorage<J, G>
impl<J, G> Freeze for SplitStorage<J, G>
impl<J, G> Move for SplitStorage<J, G>
impl<J, G> RefUnwindSafe for SplitStorage<J, G>where
J: RefUnwindSafe,
G: RefUnwindSafe,
impl<J, G> Send for SplitStorage<J, G>
impl<J, G> Sync for SplitStorage<J, G>
impl<J, G> Unpin for SplitStorage<J, G>
impl<J, G> UnsafeUnpin for SplitStorage<J, G>where
J: UnsafeUnpin,
G: UnsafeUnpin,
impl<J, G> UnwindSafe for SplitStorage<J, G>where
J: UnwindSafe,
G: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more