Struct rubble::beacon::BeaconScanner[][src]

pub struct BeaconScanner<C: ScanCallback, F: AddressFilter> {
    cb: C,
    filter: ScanFilter<F>,
    interval: Duration,
    channel: AdvertisingChannel,
}
Expand description

A passive scanner for non-connectable beacon advertisements.

Fields

cb: Cfilter: ScanFilter<F>interval: Durationchannel: AdvertisingChannel

Implementations

Creates a BeaconScanner that will report beacons from any device.

Creates a BeaconScanner with a custom device filter.

Configures the BeaconScanner and returns a Cmd to apply to the radio.

The next_update field of the returned Cmd specifies when to call timer_update the next time. The timer used for this does not have to be very accurate, it is only used to switch to the next advertising channel after interval elapses.

Updates the BeaconScanner after the configured timer has fired.

This switches to the next advertising channel and will listen there.

Processes a received advertising channel packet.

This should be called whenever the radio receives a packet on the configured advertising channel.

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.