pub struct DiscoveredDevice {
pub name: Option<String>,
pub id: PeripheralId,
pub address: String,
pub identifier: String,
pub rssi: Option<i16>,
pub device_type: Option<DeviceType>,
pub is_aranet: bool,
pub manufacturer_data: Option<Vec<u8>>,
}Expand description
Information about a discovered Aranet device.
Fields§
§name: Option<String>The device name (e.g., “Aranet4 12345”).
id: PeripheralIdThe peripheral ID for connecting.
address: StringThe BLE address as a string (may be zeros on macOS, use id instead).
identifier: StringA connection identifier (peripheral ID on macOS, address on other platforms).
rssi: Option<i16>RSSI signal strength.
device_type: Option<DeviceType>Device type if detected from advertisement.
is_aranet: boolWhether the device is connectable.
manufacturer_data: Option<Vec<u8>>Raw manufacturer data from advertisement (if available).
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 · 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 DiscoveredDevice
impl RefUnwindSafe for DiscoveredDevice
impl Send for DiscoveredDevice
impl Sync for DiscoveredDevice
impl Unpin for DiscoveredDevice
impl UnwindSafe for DiscoveredDevice
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