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§
Sourcefn put<'life0, 'async_trait>(
&'life0 self,
link: Link,
) -> Pin<Box<dyn Future<Output = ()> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
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).
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,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".