pub struct BLEAdvertisementData { /* private fields */ }Implementations§
Source§impl BLEAdvertisementData
impl BLEAdvertisementData
pub fn new() -> Self
pub fn add_service_uuid(&mut self, uuid: BleUuid) -> &mut Self
pub fn service_data(&mut self, uuid: BleUuid, data: &[u8])
Sourcepub fn appearance(&mut self, appearance: u16) -> &mut Self
pub fn appearance(&mut self, appearance: u16) -> &mut Self
Set the device appearance in the advertising data.
Sourcepub fn add_tx_power(&mut self) -> &mut Self
pub fn add_tx_power(&mut self) -> &mut Self
Add the transmission power level to the advertisement packet.
pub fn manufacturer_data(&mut self, data: &[u8]) -> &mut Self
Auto Trait Implementations§
impl Freeze for BLEAdvertisementData
impl RefUnwindSafe for BLEAdvertisementData
impl Send for BLEAdvertisementData
impl Sync for BLEAdvertisementData
impl Unpin for BLEAdvertisementData
impl UnsafeUnpin for BLEAdvertisementData
impl UnwindSafe for BLEAdvertisementData
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more