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.Source§impl ValueTypeMarker for ScanData
impl ValueTypeMarker for ScanData
impl Persistable for ScanData
impl StructuralPartialEq for ScanData
Auto Trait Implementations§
impl Freeze for ScanData
impl RefUnwindSafe for ScanData
impl Send for ScanData
impl Sync for ScanData
impl Unpin for ScanData
impl UnwindSafe for ScanData
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
)