pub trait GraphDBTraitExt: GraphDBTrait {
// Provided methods
fn add_node<'life0, 'life1, 'async_trait, T>(
&'life0 self,
node: &'life1 T,
) -> Pin<Box<dyn Future<Output = Result<(), GraphDBError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
T: 'async_trait + Serialize + Sync,
Self: Sync + 'async_trait { ... }
fn add_nodes<'life0, 'life1, 'life2, 'async_trait, T>(
&'life0 self,
nodes: &'life1 [&'life2 T],
) -> Pin<Box<dyn Future<Output = Result<(), GraphDBError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
T: 'async_trait + Serialize + Sync,
Self: Sync + 'async_trait { ... }
}Expand description
Extension trait providing generic convenience methods on top of GraphDBTrait.
Auto-implemented for all types that implement GraphDBTrait.
Provided Methods§
Sourcefn add_node<'life0, 'life1, 'async_trait, T>(
&'life0 self,
node: &'life1 T,
) -> Pin<Box<dyn Future<Output = Result<(), GraphDBError>> + Send + 'async_trait>>
fn add_node<'life0, 'life1, 'async_trait, T>( &'life0 self, node: &'life1 T, ) -> Pin<Box<dyn Future<Output = Result<(), GraphDBError>> + Send + 'async_trait>>
Add a single node to the graph.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".