diff options
-rw-r--r-- | src/async_dag.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/async_dag.rs b/src/async_dag.rs index 85b1f9e..57ecc16 100644 --- a/src/async_dag.rs +++ b/src/async_dag.rs @@ -69,6 +69,14 @@ impl<Id, N, Backend> AsyncDag<Id, N, Backend> &self.head } + pub fn backend(&self) -> &Backend { + &self.backend + } + + pub fn backend_mut(&mut self) -> &mut Backend { + &mut self.backend + } + /// Check whether an `id` is in the DAG. pub async fn has_id(&self, id: &Id) -> Result<bool> { self.stream() |