pub trait BpfApp {
const MAP_CNT: usize;
const PROG_CNT: usize;
fn instance() -> Self;
fn as_mut_map(&mut self, index: usize) -> Option<&mut MapRef>;
fn as_mut_prog(&mut self, index: usize) -> Option<&mut ProgRef>;
}
pub trait BpfApp {
const MAP_CNT: usize;
const PROG_CNT: usize;
fn instance() -> Self;
fn as_mut_map(&mut self, index: usize) -> Option<&mut MapRef>;
fn as_mut_prog(&mut self, index: usize) -> Option<&mut ProgRef>;
}