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§fn clone(&self) -> AdvertisingData
fn clone(&self) -> AdvertisingData
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§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§fn default() -> AdvertisingData
fn default() -> 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
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
.§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 more§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 moreimpl Persistable for AdvertisingData
impl StructuralPartialEq for AdvertisingData
Auto Trait Implementations§
impl Freeze for AdvertisingData
impl RefUnwindSafe for AdvertisingData
impl Send for AdvertisingData
impl Sync for AdvertisingData
impl Unpin for AdvertisingData
impl UnwindSafe for AdvertisingData
Blanket Implementations§
§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
§type MarkerInResultUnion = T
type MarkerInResultUnion = T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)