pub struct StorageWriterAdapter<'a>(pub &'a dyn StorageEngine);Expand description
Adapter that lets a &dyn StorageEngine act as a GraphWriter.
See crate::reader::StorageReaderAdapter for the rationale.
Tuple Fields§
§0: &'a dyn StorageEngineTrait Implementations§
Source§impl GraphWriter for StorageWriterAdapter<'_>
impl GraphWriter for StorageWriterAdapter<'_>
fn put_node(&self, node: &Node) -> Result<()>
fn put_edge(&self, edge: &Edge) -> Result<()>
fn delete_edge(&self, id: EdgeId) -> Result<()>
fn detach_delete_node(&self, id: NodeId) -> Result<()>
Source§fn create_property_index(&self, label: &str, property: &str) -> Result<()>
fn create_property_index(&self, label: &str, property: &str) -> Result<()>
Declare a new property index. Default impl errors so remote
writers (Raft, routing) that don’t yet support cluster-aware
DDL surface the limitation immediately. Storage-backed writers
override this via the blanket impl.
Source§fn drop_property_index(&self, label: &str, property: &str) -> Result<()>
fn drop_property_index(&self, label: &str, property: &str) -> Result<()>
Tear down a property index. Mirrors
Self::create_property_index.Auto Trait Implementations§
impl<'a> Freeze for StorageWriterAdapter<'a>
impl<'a> !RefUnwindSafe for StorageWriterAdapter<'a>
impl<'a> Send for StorageWriterAdapter<'a>
impl<'a> Sync for StorageWriterAdapter<'a>
impl<'a> Unpin for StorageWriterAdapter<'a>
impl<'a> UnsafeUnpin for StorageWriterAdapter<'a>
impl<'a> !UnwindSafe for StorageWriterAdapter<'a>
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