memoryd: a Honcho client per workspace, and its workspace, peers and sessions made sure of
Co-Authored-By: ornith-1.5-35b-a3b <agent@wntrmute.dev>
This commit is contained in:
@@ -208,6 +208,13 @@ impl Ledger {
|
||||
self.entries.contains_key(item)
|
||||
}
|
||||
|
||||
/// Every decided item with its action, `Skip` included, in the order they were decided.
|
||||
pub fn decisions(&self) -> impl Iterator<Item = (&Item, &Action)> + '_ {
|
||||
self.order
|
||||
.iter()
|
||||
.filter_map(|item| Some((item, &self.entries.get(item)?.action)))
|
||||
}
|
||||
|
||||
/// The items waiting to be sent, with their actions, in the order they were decided.
|
||||
pub fn outbox(&self) -> Vec<(Item, Action)> {
|
||||
self.order
|
||||
|
||||
Reference in New Issue
Block a user