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)) .map(|p| T::try_from(p))
.transpose() .transpose()
} }
pub fn programs(&self) -> impl Iterator<Item = &Program> {
self.programs.values()
}
} }
#[derive(Debug, Error)] #[derive(Debug, Error)]

Loading…
Cancel
Save