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 an iterator yielding the allowed device addresses.

The filter will clone and iterate over allowed_addresses for each incoming packet that needs to be checked against the filter.

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.

Trait Implementations

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.