pub struct ScanData {
pub tx_power: Option<i8>,
pub appearance: Option<Appearance>,
pub service_uuids: Option<Vec<Uuid>>,
pub service_data: Option<Vec<ServiceData>>,
pub manufacturer_data: Option<Vec<ManufacturerData>>,
pub uris: Option<Vec<String>>,
pub timestamp: Option<i64>,
/* private fields */
}
Expand description
Information obtained from advertising and scan response data broadcast by a peer.
Fields§
§tx_power: Option<i8>
The radio transmit power level reported by an advertising and/or scannable peer.
NOTE: This field should NOT be confused with the “connection TX Power Level” of a peer that is currently connected to the system obtained via the “Transmit Power reporting” feature.
appearance: Option<Appearance>
The appearance of the device.
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; NOTE: Bluetooth advertising compresses schemas over the air to save space. See https://www.bluetooth.com/specifications/assigned-numbers/uri-scheme-name-string-mapping.
timestamp: Option<i64>
The monotonic time when this scan data was received.
Trait Implementations§
Source§impl<D: ResourceDialect> Decode<ScanData, D> for ScanData
impl<D: ResourceDialect> Decode<ScanData, D> for ScanData
Source§impl TypeMarker for ScanData
impl TypeMarker for ScanData
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.