Struct bluenrg::gap::ScanWindow[][src]

pub struct ScanWindow { /* fields omitted */ }

Define a scanning window.

The controller runs LE scans every interval, with scanning active during the window in every interval.

The minimum time range is 2.5 ms, and the maximum is 10.24 s. The window must be shorter than or equal to the interval.

Methods

impl ScanWindow
[src]

Returns the interval for the scanning window. The controller starts an LE scan every interval.

Returns the amount of time the controller is scanning every interval.

Serializes the window into the given byte buffer.

Panics

The buffer must be at least 4 bytes long.

Begins building a ScanWindow. The scan window has the given interval. Returns a builder that can be used to set the window duration.

Errors

  • [ScanWindowError::TooShort] if the provided interval is too short. It must be at least 2.5 ms.
  • [ScanWindowError::TooLong] if the provided interval is too long. It must be 10.24 seconds or less.

Trait Implementations

impl Debug for ScanWindow
[src]

Formats the value using the given formatter. Read more

impl Clone for ScanWindow
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for ScanWindow

impl Sync for ScanWindow