Struct BroadcastModeParameters

Source
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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.