Struct rubble::link::filter::WhitelistFilter [−][src]
pub struct WhitelistFilter<I: Iterator<Item = DeviceAddress> + Clone> {
addresses: I,
}
Expand description
An AddressFilter
that checks device addresses against a whitelist.
This is a software filter, which allows checking against arbitrarily many device addresses, but might be less efficient than a hardware-based filter.
Fields
addresses: I
Implementations
Creates a device whitelist from a slice of device addresses.
This is a convenience method provided to simplify using a slice as a device address whitelist.
Creates a device whitelist that will allow a single device.