pub struct AdvertisingData {
pub name: Option<String>,
pub appearance: Option<Appearance>,
pub tx_power_level: Option<i8>,
pub service_uuids: Option<Vec<Uuid>>,
pub service_data: Option<Vec<ServiceData>>,
pub manufacturer_data: Option<Vec<ManufacturerData>>,
pub uris: Option<Vec<String>>,
pub include_tx_power_level: Option<bool>,
pub resolvable_set_identifier: Option<[u8; 6]>,
pub broadcast_name: Option<String>,
/* private fields */
}Expand description
Represents advertising and scan response data that are transmitted by a LE peripheral or broadcaster.
Fields§
§name: Option<String>Long or short name of the device.
appearance: Option<Appearance>The appearance of the device.
tx_power_level: Option<i8>§service_uuids: Option<Vec<Uuid>>Service UUIDs.
service_data: Option<Vec<ServiceData>>Service data entries.
manufacturer_data: Option<Vec<ManufacturerData>>Manufacturer-specific data entries.
uris: Option<Vec<String>>String representing a URI to be advertised, as defined in IETF STD 66. Each entry should be a UTF-8 string including the scheme. For more information, see:
- https://www.iana.org/assignments/uri-schemes/uri-schemes.xhtml for allowed schemes;
- https://www.bluetooth.com/specifications/assigned-numbers/uri-scheme-name-string-mapping for code-points used by the system to compress the scheme to save space in the payload.
include_tx_power_level: Option<bool>Indicates whether the current TX power level should be included in the advertising data.
resolvable_set_identifier: Option<[u8; 6]>Identifies the peer as belonging to a Coordinated Set. Resolution and generation of this parameter is defined in the Coordinated Set Identification Service Specification.
broadcast_name: Option<String>The broadcast name string can be used by a user interface on a scanning device that displays information on the available broadcast sources.
Multiple devices with the same Broadcast Name may be transmitting the same data, allowing devices to choose one. At least 4 unicode characters long and no more than 32 characters.
Defined in the Public Broadcast Profile specification.
Trait Implementations§
Source§impl Clone for AdvertisingData
impl Clone for AdvertisingData
Source§impl Debug for AdvertisingData
impl Debug for AdvertisingData
Source§impl<D: ResourceDialect> Decode<AdvertisingData, D> for AdvertisingData
impl<D: ResourceDialect> Decode<AdvertisingData, D> for AdvertisingData
Source§impl Default for AdvertisingData
impl Default for AdvertisingData
Source§impl<D: ResourceDialect> Encode<AdvertisingData, D> for &AdvertisingData
impl<D: ResourceDialect> Encode<AdvertisingData, D> for &AdvertisingData
Source§impl PartialEq for AdvertisingData
impl PartialEq for AdvertisingData
impl Persistable for AdvertisingData
impl StructuralPartialEq for AdvertisingData
Source§impl TypeMarker for AdvertisingData
impl TypeMarker for AdvertisingData
Source§type Owned = AdvertisingData
type Owned = AdvertisingData
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align.Source§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Self::Owned matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned to a single memcpy. Read moreSource§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Self::Owned matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned to a single memcpy.Source§impl ValueTypeMarker for AdvertisingData
impl ValueTypeMarker for AdvertisingData
Source§type Borrowed<'a> = &'a AdvertisingData
type Borrowed<'a> = &'a AdvertisingData
Encode<Self>
type cheaply obtainable from &Self::Owned. There are three cases: Read more