[][src]Struct bluetooth_hci::host::ScanWindow

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.

Implementations

impl ScanWindow[src]

pub fn interval(&self) -> Duration[src]

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

pub fn window(&self) -> Duration[src]

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

pub fn copy_into_slice(&self, bytes: &mut [u8])[src]

Serializes the window into the given byte buffer.

Panics

The buffer must be at least 4 bytes long.

pub fn start_every(
    interval: Duration
) -> Result<ScanWindowBuilder, ScanWindowError>
[src]

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

Errors

Trait Implementations

impl Clone for ScanWindow[src]

impl Debug for ScanWindow[src]

impl PartialEq<ScanWindow> for ScanWindow[src]

impl StructuralPartialEq for ScanWindow[src]

Auto Trait Implementations

impl Send for ScanWindow

impl Sync for ScanWindow

impl Unpin for ScanWindow

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.