Function canadensis_can::driver::optimize_filters
source · pub fn optimize_filters<F, S>(
local_node: Option<CanNodeId>,
subscriptions: S,
max_filters: usize,
f: F
) -> Result<(), OutOfMemoryError>where
F: FnOnce(&[Filter]),
S: IntoIterator<Item = Subscription>,
Expand description
Creates a set of filters from the provided subscription, optimizes them to reduce the number of filters, and passes the resulting filters to a callback