pub struct AdvertisementData {
pub local_name: Option<String>,
pub manufacturer_data: Option<ManufacturerData>,
pub services: Vec<Uuid>,
pub service_data: HashMap<Uuid, Vec<u8>>,
pub tx_power_level: Option<i16>,
pub is_connectable: bool,
}Expand description
Data included in a Bluetooth advertisement or scan reponse.
Fields§
§local_name: Option<String>The (possibly shortened) local name of the device (CSS §A.1.2)
manufacturer_data: Option<ManufacturerData>Manufacturer specific data (CSS §A.1.4)
services: Vec<Uuid>Advertised GATT service UUIDs (CSS §A.1.1)
service_data: HashMap<Uuid, Vec<u8>>Service associated data (CSS §A.1.11)
tx_power_level: Option<i16>Transmitted power level (CSS §A.1.5)
is_connectable: boolSet to true for connectable advertising packets
Trait Implementations§
Source§impl Clone for AdvertisementData
impl Clone for AdvertisementData
Source§fn clone(&self) -> AdvertisementData
fn clone(&self) -> AdvertisementData
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AdvertisementData
impl Debug for AdvertisementData
Source§impl PartialEq for AdvertisementData
impl PartialEq for AdvertisementData
impl Eq for AdvertisementData
impl StructuralPartialEq for AdvertisementData
Auto Trait Implementations§
impl Freeze for AdvertisementData
impl RefUnwindSafe for AdvertisementData
impl Send for AdvertisementData
impl Sync for AdvertisementData
impl Unpin for AdvertisementData
impl UnwindSafe for AdvertisementData
Blanket Implementations§
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
Mutably borrows from an owned value. Read more