pub struct ScanRecord<'a> { /* private fields */ }Expand description
Stores the byte data of the advertisement packet sent by a Bluetooth device.
Implementations§
Source§impl<'a> ScanRecord<'a>
impl<'a> ScanRecord<'a>
Sourcepub fn builder() -> ScanRecordBuilder<'a>
pub fn builder() -> ScanRecordBuilder<'a>
Creates a builder for this type.
pub fn name(&self) -> Option<&str>
pub fn uuids(&self) -> Option<&[Cow<'a, str>]>
Sourcepub fn appearance(&self) -> Option<i64>
pub fn appearance(&self) -> Option<i64>
Stores the external appearance description of the device.
Sourcepub fn manufacturer_data(&self) -> Option<&[ManufacturerData<'a>]>
pub fn manufacturer_data(&self) -> Option<&[ManufacturerData<'a>]>
Key is the company identifier and the value is an array of bytes of manufacturer specific data.
Trait Implementations§
Source§impl<'a> Clone for ScanRecord<'a>
impl<'a> Clone for ScanRecord<'a>
Source§fn clone(&self) -> ScanRecord<'a>
fn clone(&self) -> ScanRecord<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for ScanRecord<'a>
impl<'a> Debug for ScanRecord<'a>
Source§impl<'a> Default for ScanRecord<'a>
impl<'a> Default for ScanRecord<'a>
Source§fn default() -> ScanRecord<'a>
fn default() -> ScanRecord<'a>
Returns the “default value” for a type. Read more
Source§impl<'de, 'a> Deserialize<'de> for ScanRecord<'a>
impl<'de, 'a> Deserialize<'de> for ScanRecord<'a>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl<'a> Freeze for ScanRecord<'a>
impl<'a> RefUnwindSafe for ScanRecord<'a>
impl<'a> Send for ScanRecord<'a>
impl<'a> Sync for ScanRecord<'a>
impl<'a> Unpin for ScanRecord<'a>
impl<'a> UnsafeUnpin for ScanRecord<'a>
impl<'a> UnwindSafe for ScanRecord<'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