pub trait DirectoryServiceGraphExt {
// Required methods
fn get_directory_graph<'life0, 'life1, 'async_trait>(
&'life0 self,
digest: &'life1 B3Digest,
) -> Pin<Box<dyn Future<Output = Result<Option<DirectoryGraph>, Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn put_directory_graph<'life0, 'async_trait>(
&'life0 self,
directory_graph: DirectoryGraph,
) -> Pin<Box<dyn Future<Output = Result<B3Digest, Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Extension trait to get a DirectoryGraph from a DirectoryService, and insert into it.
Required Methods§
Sourcefn get_directory_graph<'life0, 'life1, 'async_trait>(
&'life0 self,
digest: &'life1 B3Digest,
) -> Pin<Box<dyn Future<Output = Result<Option<DirectoryGraph>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_directory_graph<'life0, 'life1, 'async_trait>(
&'life0 self,
digest: &'life1 B3Digest,
) -> Pin<Box<dyn Future<Output = Result<Option<DirectoryGraph>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Queries the DirectoryService for the DirectoryGraph with the given root digest.
Sourcefn put_directory_graph<'life0, 'async_trait>(
&'life0 self,
directory_graph: DirectoryGraph,
) -> Pin<Box<dyn Future<Output = Result<B3Digest, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn put_directory_graph<'life0, 'async_trait>(
&'life0 self,
directory_graph: DirectoryGraph,
) -> Pin<Box<dyn Future<Output = Result<B3Digest, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Inserts the given DirectoryGraph into the DirectoryService.