Struct bluenrg::gap::DiscoverableParameters[][src]

pub struct DiscoverableParameters<'a, 'b> {
    pub advertising_type: AdvertisingType,
    pub advertising_interval: Option<(Duration, Duration)>,
    pub address_type: OwnAddressType,
    pub filter_policy: AdvertisingFilterPolicy,
    pub local_name: Option<LocalName<'a>>,
    pub advertising_data: &'b [u8],
    pub conn_interval: (Option<Duration>, Option<Duration>),
}

Parameters for the set_limited_discoverable and set_discoverable commands.

Fields

Advertising method for the device.

Must be ConnectableUndirected, ScannableUndirected, or NonConnectableUndirected.

Range of advertising for non-directed advertising.

If not provided, the GAP will use default values (1.28 seconds).

Range for both limits: 20 ms to 10.24 seconds. The second value must be greater than or equal to the first.

Address type for this device.

Filter policy for this device.

Name of the device.

Service UUID list as defined in the Bluetooth spec, v4.1, Vol 3, Part C, Section 11.

Must be 31 bytes or fewer.

Expected length of the connection to the peripheral.

Auto Trait Implementations

impl<'a, 'b> Send for DiscoverableParameters<'a, 'b>

impl<'a, 'b> Sync for DiscoverableParameters<'a, 'b>