summaryrefslogtreecommitdiffstats
path: root/src/async_dag.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/async_dag.rs')
-rw-r--r--src/async_dag.rs8
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()