pub struct DiscoveryConfig {
pub scan_interval_ms: u32,
pub scan_window_ms: u32,
pub adv_interval_ms: u32,
pub tx_power_dbm: i8,
pub adv_phy: BlePhy,
pub scan_phy: BlePhy,
pub active_scan: bool,
pub filter_duplicates: bool,
}Expand description
Discovery configuration
Fields§
§scan_interval_ms: u32Scan interval in milliseconds
scan_window_ms: u32Scan window in milliseconds (must be <= scan_interval_ms)
adv_interval_ms: u32Advertisement interval in milliseconds
tx_power_dbm: i8Transmit power in dBm (-20 to +10 typical)
adv_phy: BlePhyPHY for advertising
scan_phy: BlePhyPHY for scanning
active_scan: boolEnable active scanning (requests scan response)
filter_duplicates: boolFilter duplicates during scan
Trait Implementations§
Source§impl Clone for DiscoveryConfig
impl Clone for DiscoveryConfig
Source§fn clone(&self) -> DiscoveryConfig
fn clone(&self) -> DiscoveryConfig
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 DiscoveryConfig
impl Debug for DiscoveryConfig
Auto Trait Implementations§
impl Freeze for DiscoveryConfig
impl RefUnwindSafe for DiscoveryConfig
impl Send for DiscoveryConfig
impl Sync for DiscoveryConfig
impl Unpin for DiscoveryConfig
impl UnwindSafe for DiscoveryConfig
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