Add communication with user actor

This commit is contained in:
2022-03-30 12:41:22 +02:00
parent bfe4674f88
commit 6fdac7fbb1
6 changed files with 94 additions and 10 deletions

View File

@@ -1,4 +1,5 @@
use std::path::{Path, PathBuf};
use std::slice::Iter;
use crate::utils::err::Res;
@@ -44,4 +45,9 @@ impl<E> EntityManager<E> where E: serde::Serialize + serde::de::DeserializeOwned
self.list.push(el);
self.save()
}
/// Iterate over the entries of this entity manager
pub fn iter(&self) -> Iter<'_, E> {
self.list.iter()
}
}