pub struct BroadcastModeParameters<'a, 'b> {
pub advertising_interval: AdvertisingInterval,
pub own_address_type: AddressType,
pub advertising_data: &'a [u8],
pub white_list: &'b [PeerAddrType],
}
Expand description
Parameters for the GAP Set Broadcast Mode command.
Fields§
§advertising_interval: AdvertisingInterval
Advertising type and interval.
Only the ScannableUndirected and NonConnectableUndirected.
own_address_type: AddressType
Type of this device’s address.
A privacy enabled device uses either a resolvable private address or a non-resolvable private address.
advertising_data: &'a [u8]
Advertising data used by the device when advertising.
Must be 31 bytes or fewer.
white_list: &'b [PeerAddrType]
Addresses to add to the white list.
Each address takes up 7 bytes (1 byte for the type, 6 for the address). The full length of
this packet must not exceed 255 bytes. The white list must be less than a maximum of between
31 and 35 entries, depending on the length of
advertising_data
. Shorter advertising data
allows more white list entries.
Auto Trait Implementations§
impl<'a, 'b> Freeze for BroadcastModeParameters<'a, 'b>
impl<'a, 'b> RefUnwindSafe for BroadcastModeParameters<'a, 'b>
impl<'a, 'b> Send for BroadcastModeParameters<'a, 'b>
impl<'a, 'b> Sync for BroadcastModeParameters<'a, 'b>
impl<'a, 'b> Unpin for BroadcastModeParameters<'a, 'b>
impl<'a, 'b> UnwindSafe for BroadcastModeParameters<'a, 'b>
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