pub struct ScanRecordBuilder<'a> { /* private fields */ }Implementations§
Source§impl<'a> ScanRecordBuilder<'a>
impl<'a> ScanRecordBuilder<'a>
pub fn name(self, name: impl Into<Cow<'a, str>>) -> Self
pub fn uuids(self, uuids: Vec<Cow<'a, str>>) -> Self
Sourcepub fn appearance(self, appearance: i64) -> Self
pub fn appearance(self, appearance: i64) -> Self
Stores the external appearance description of the device.
Sourcepub fn txPower(self, txPower: i64) -> Self
pub fn txPower(self, txPower: i64) -> Self
Stores the transmission power of a broadcasting device.
Sourcepub fn manufacturerData(
self,
manufacturerData: Vec<ManufacturerData<'a>>,
) -> Self
pub fn manufacturerData( self, manufacturerData: Vec<ManufacturerData<'a>>, ) -> Self
Key is the company identifier and the value is an array of bytes of manufacturer specific data.
pub fn build(self) -> ScanRecord<'a>
Trait Implementations§
Source§impl<'a> Default for ScanRecordBuilder<'a>
impl<'a> Default for ScanRecordBuilder<'a>
Source§fn default() -> ScanRecordBuilder<'a>
fn default() -> ScanRecordBuilder<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for ScanRecordBuilder<'a>
impl<'a> RefUnwindSafe for ScanRecordBuilder<'a>
impl<'a> Send for ScanRecordBuilder<'a>
impl<'a> Sync for ScanRecordBuilder<'a>
impl<'a> Unpin for ScanRecordBuilder<'a>
impl<'a> UnsafeUnpin for ScanRecordBuilder<'a>
impl<'a> UnwindSafe for ScanRecordBuilder<'a>
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