pub struct MemoryStore { /* private fields */ }Expand description
In-memory store of nodes and edges.
Implementations§
Source§impl MemoryStore
impl MemoryStore
Trait Implementations§
Source§impl Clone for MemoryStore
impl Clone for MemoryStore
Source§fn clone(&self) -> MemoryStore
fn clone(&self) -> MemoryStore
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MemoryStore
impl Debug for MemoryStore
Source§impl Default for MemoryStore
impl Default for MemoryStore
Source§fn default() -> MemoryStore
fn default() -> MemoryStore
Returns the “default value” for a type. Read more
Source§impl GraphBackend for MemoryStore
impl GraphBackend for MemoryStore
Source§type Error = MemoryError
type Error = MemoryError
Error type returned by this backend.
Source§fn init(&mut self) -> Result<(), Self::Error>
fn init(&mut self) -> Result<(), Self::Error>
Initialize the backend (create tables/files, run migrations).
Source§fn write_nodes(&mut self, nodes: &[Node]) -> Result<(), Self::Error>
fn write_nodes(&mut self, nodes: &[Node]) -> Result<(), Self::Error>
Persist a batch of nodes.
Source§fn write_edges(&mut self, edges: &[Edge]) -> Result<(), Self::Error>
fn write_edges(&mut self, edges: &[Edge]) -> Result<(), Self::Error>
Persist a batch of edges.
Source§fn find_nodes_by_type(&self, kind: NodeType) -> Result<Vec<Node>, Self::Error>
fn find_nodes_by_type(&self, kind: NodeType) -> Result<Vec<Node>, Self::Error>
Find nodes by type.
Auto Trait Implementations§
impl Freeze for MemoryStore
impl RefUnwindSafe for MemoryStore
impl Send for MemoryStore
impl Sync for MemoryStore
impl Unpin for MemoryStore
impl UnsafeUnpin for MemoryStore
impl UnwindSafe for MemoryStore
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