[][src]Struct core_bluetooth::central::ScanOptions

pub struct ScanOptions { /* fields omitted */ }

Peripheral scanning options accepted by scan_with_options.

Implementations

impl ScanOptions[src]

pub fn allow_duplicates(self, v: bool) -> Self[src]

Specifies whether the scan should run without duplicate filtering.

If true, the central disables filtering and generates a discovery event each time it receives an advertising packet from the peripheral. If false (the default), the central coalesces multiple discoveries of the same peripheral into a single discovery event.

Disabling this filtering can have an adverse effect on battery life; use it only if necessary.

pub fn include_services(self, uuids: &[Uuid]) -> Self[src]

Specifies services UUIDs making the central manager return only peripherals that advertise these services.

pub fn include_solicited_services(self, uuids: &[Uuid]) -> Self[src]

Specifying this scan option causes the central manager to also scan for peripherals soliciting any of the services contained in the array.

Trait Implementations

impl Default for ScanOptions[src]

Auto Trait Implementations

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.