pub struct AdapterInfo {
pub index: usize,
pub name: String,
pub id: String,
pub is_default: bool,
pub mac_address: Option<String>,
pub ble_supported: bool,
pub peripheral_supported: bool,
}Expand description
SRS-003: Bluetooth adapter information.
Contains metadata about a discovered Bluetooth adapter.
Fields§
§index: usizeIndex in the adapter list
name: StringHuman-readable adapter name
id: StringWindows device ID
is_default: boolWhether this is the system default adapter
mac_address: Option<String>MAC address (if available)
ble_supported: boolWhether BLE is supported
peripheral_supported: boolWhether peripheral role is supported
Trait Implementations§
Source§impl Clone for AdapterInfo
impl Clone for AdapterInfo
Source§fn clone(&self) -> AdapterInfo
fn clone(&self) -> AdapterInfo
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 moreSource§impl Debug for AdapterInfo
impl Debug for AdapterInfo
Auto Trait Implementations§
impl Freeze for AdapterInfo
impl RefUnwindSafe for AdapterInfo
impl Send for AdapterInfo
impl Sync for AdapterInfo
impl Unpin for AdapterInfo
impl UnwindSafe for AdapterInfo
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