[−][src]Struct core_bluetooth::central::ScanOptions
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]
fn default() -> ScanOptions
[src]
Auto Trait Implementations
impl RefUnwindSafe for ScanOptions
impl Send for ScanOptions
impl Sync for ScanOptions
impl Unpin for ScanOptions
impl UnwindSafe for ScanOptions
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,