aya: bpf: Add Bpf::programs()

pull/1/head
Alessandro Decina 4 years ago
parent dcb5121985
commit 0199e4b297

@ -210,6 +210,10 @@ impl Bpf {
.map(|p| T::try_from(p))
.transpose()
}
pub fn programs(&self) -> impl Iterator<Item = &Program> {
self.programs.values()
}
}
#[derive(Debug, Error)]

Loading…
Cancel
Save