pub struct ScanOptions {
pub duration: Duration,
pub filter_aranet_only: bool,
}Expand description
Options for scanning.
Fields§
§duration: DurationHow long to scan for devices.
filter_aranet_only: boolOnly return devices that appear to be Aranet devices.
Implementations§
Source§impl ScanOptions
impl ScanOptions
Sourcepub fn duration_secs(self, secs: u64) -> Self
pub fn duration_secs(self, secs: u64) -> Self
Set scan duration in seconds.
Sourcepub fn filter_aranet_only(self, filter: bool) -> Self
pub fn filter_aranet_only(self, filter: bool) -> Self
Set whether to filter for Aranet devices only.
Sourcepub fn all_devices(self) -> Self
pub fn all_devices(self) -> Self
Scan for all BLE devices, not just Aranet.
Trait Implementations§
Source§impl Clone for ScanOptions
impl Clone for ScanOptions
Source§fn clone(&self) -> ScanOptions
fn clone(&self) -> ScanOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ScanOptions
impl Debug for ScanOptions
Auto Trait Implementations§
impl Freeze for ScanOptions
impl RefUnwindSafe for ScanOptions
impl Send for ScanOptions
impl Sync for ScanOptions
impl Unpin for ScanOptions
impl UnwindSafe for ScanOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more