mirror of
https://github.com/Astatin3/unshell.git
synced 2026-06-09 06:47:59 -06:00
Add "LeafMeta" struct to leaf
This commit is contained in:
@@ -120,4 +120,11 @@ impl Endpoint {
|
||||
queue.clear();
|
||||
}
|
||||
}
|
||||
|
||||
pub fn iter_leaves<F>(&mut self) -> core::slice::IterMut<'_, Box<dyn Leaf + 'static>>
|
||||
where
|
||||
F: FnMut(&Packet),
|
||||
{
|
||||
self.leaves.iter_mut()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user