pub struct DiscoveredDevice {
pub addr: BdAddr,
pub page_scan_rep_mode: u8,
pub class_of_device: u32,
pub clock_offset: u16,
pub rssi: i8,
pub name: [u8; 248],
pub name_len: usize,
pub valid: bool,
}Expand description
A discovered Bluetooth device
Fields§
§addr: BdAddrDevice Bluetooth address
page_scan_rep_mode: u8Page scan repetition mode
class_of_device: u32Class of device (3 bytes packed into u32)
clock_offset: u16Clock offset
rssi: i8RSSI (signed, dBm)
name: [u8; 248]Device name (from name resolution or EIR)
name_len: usizeLength of valid name bytes
valid: boolWhether this entry is occupied
Implementations§
Trait Implementations§
Source§impl Clone for DiscoveredDevice
impl Clone for DiscoveredDevice
Source§fn clone(&self) -> DiscoveredDevice
fn clone(&self) -> DiscoveredDevice
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DiscoveredDevice
impl Debug for DiscoveredDevice
impl Copy for DiscoveredDevice
Auto Trait Implementations§
impl Freeze for DiscoveredDevice
impl RefUnwindSafe for DiscoveredDevice
impl Send for DiscoveredDevice
impl Sync for DiscoveredDevice
impl Unpin for DiscoveredDevice
impl UnwindSafe for DiscoveredDevice
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
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)