Skip to main content

take

Function take 

Source
pub fn take(
    t: &mut Tracker,
    ev: &Event,
    own_netns: u32,
    unit: impl FnOnce() -> Option<UnitId>,
    ifname: &mut dyn FnMut(u32) -> Option<String>,
)
Expand description

One event as the loop takes it: ignored if it acts in another netns, a loss nothing can place if the netns is unknown, else parsed and applied to t for the unit unit() finds (unattributed if none).