pub struct ScanRecordBuilder { /* private fields */ }Expand description
Builder for ScanRecord.
Implementations§
Source§impl ScanRecordBuilder
impl ScanRecordBuilder
pub fn name<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn uuids<VALUE: Into<Vec<String>>>(&mut self, value: VALUE) -> &mut Self
Sourcepub fn appearance<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
pub fn appearance<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
Stores the external appearance description of the device.
Sourcepub fn tx_power<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
pub fn tx_power<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
Stores the transmission power of a broadcasting device.
Sourcepub fn manufacturer_data<VALUE: Into<Vec<ManufacturerData>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn manufacturer_data<VALUE: Into<Vec<ManufacturerData>>>( &mut self, value: VALUE, ) -> &mut Self
Key is the company identifier and the value is an array of bytes of manufacturer specific data.
Sourcepub fn build(&self) -> Result<ScanRecord, ScanRecordBuilderError>
pub fn build(&self) -> Result<ScanRecord, ScanRecordBuilderError>
Trait Implementations§
Source§impl Clone for ScanRecordBuilder
impl Clone for ScanRecordBuilder
Source§fn clone(&self) -> ScanRecordBuilder
fn clone(&self) -> ScanRecordBuilder
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 moreAuto Trait Implementations§
impl Freeze for ScanRecordBuilder
impl RefUnwindSafe for ScanRecordBuilder
impl Send for ScanRecordBuilder
impl Sync for ScanRecordBuilder
impl Unpin for ScanRecordBuilder
impl UnsafeUnpin for ScanRecordBuilder
impl UnwindSafe for ScanRecordBuilder
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