Skip to main content

LinkRepository

Trait LinkRepository 

Source
pub trait LinkRepository {
    // Required methods
    fn put<'life0, 'async_trait>(
        &'life0 self,
        link: Link,
    ) -> Pin<Box<dyn Future<Output = ()> + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn remove<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        from: &'life1 Id,
        to: &'life2 Id,
        kind: LinkKind,
    ) -> Pin<Box<dyn Future<Output = ()> + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn outgoing<'life0, 'life1, 'async_trait>(
        &'life0 self,
        from: &'life1 Id,
        kind: LinkKind,
    ) -> Pin<Box<dyn Future<Output = Vec<Link>> + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn incoming<'life0, 'life1, 'async_trait>(
        &'life0 self,
        to: &'life1 Id,
        kind: LinkKind,
    ) -> Pin<Box<dyn Future<Output = Vec<Link>> + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

Source

fn put<'life0, 'async_trait>( &'life0 self, link: Link, ) -> Pin<Box<dyn Future<Output = ()> + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Insert or replace the edge keyed by (from, to, kind).

Source

fn remove<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, from: &'life1 Id, to: &'life2 Id, kind: LinkKind, ) -> Pin<Box<dyn Future<Output = ()> + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn outgoing<'life0, 'life1, 'async_trait>( &'life0 self, from: &'life1 Id, kind: LinkKind, ) -> Pin<Box<dyn Future<Output = Vec<Link>> + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Edges out of from of this kind, ordered by position ascending.

Source

fn incoming<'life0, 'life1, 'async_trait>( &'life0 self, to: &'life1 Id, kind: LinkKind, ) -> Pin<Box<dyn Future<Output = Vec<Link>> + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Edges into to of this kind.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§