Function lks_scan

Source
pub fn lks_scan(
    query: &LkQuery,
    cb: &mut dyn for<'o> FnMut(&'o dyn Point) -> ShouldBreak,
) -> LkResult<i64>
Expand description

Call the callback for every query matched packet in storage. Note that new packets are only readable after a call to lks_process_*. Unlike lks_tap this only checks the :scan / :linkscan options (it does nothing for :notify, or :watch) If no :scan is set assumes :scan space-desc Break early if the callback returns true. returns number of matches. Positive if cb returned true, otherwise negative