Function linkspace::runtime::lk_get_all
source · pub fn lk_get_all(
lk: &Linkspace,
query: &Query,
cb: &mut dyn FnMut(&dyn NetPkt) -> bool
) -> LkResult<i32>
Expand description
Run callback for every match for the query in the database. Break early if the callback returns true. returns number of matches if return from break return is -1*Number of matches If break => number of matches If no break ( cb only returned false ) => -1 * Number of matches