Skip to main content

GraphDBTraitExt

Trait GraphDBTraitExt 

Source
pub trait GraphDBTraitExt: GraphDBTrait {
    // Provided methods
    fn add_node<'life0, 'life1, 'async_trait, T>(
        &'life0 self,
        node: &'life1 T,
    ) -> Pin<Box<dyn Future<Output = GraphDBResult<()>> + Send + 'async_trait>>
       where T: 'async_trait + Serialize + Sync,
             Self: Sync + 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
    fn add_nodes<'life0, 'life1, 'life2, 'async_trait, T>(
        &'life0 self,
        nodes: &'life1 [&'life2 T],
    ) -> Pin<Box<dyn Future<Output = GraphDBResult<()>> + Send + 'async_trait>>
       where T: 'async_trait + Serialize + Sync,
             Self: Sync + 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait { ... }
}
Expand description

Extension trait providing generic convenience methods on top of GraphDBTrait. Auto-implemented for all types that implement GraphDBTrait.

Provided Methods§

Source

fn add_node<'life0, 'life1, 'async_trait, T>( &'life0 self, node: &'life1 T, ) -> Pin<Box<dyn Future<Output = GraphDBResult<()>> + Send + 'async_trait>>
where T: 'async_trait + Serialize + Sync, Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Add a single node to the graph.

Source

fn add_nodes<'life0, 'life1, 'life2, 'async_trait, T>( &'life0 self, nodes: &'life1 [&'life2 T], ) -> Pin<Box<dyn Future<Output = GraphDBResult<()>> + Send + 'async_trait>>
where T: 'async_trait + Serialize + Sync, Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Add multiple nodes in a batch operation.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§