pub struct HostInfo {
pub id: HostId,
pub technology: TechnologyType,
pub addresses: Vec<Address>,
pub active: bool,
pub local_name: Option<String>,
pub discoverable: bool,
pub discovering: bool,
}
Expand description
HostInfo
contains informational parameters and state for a bt-host device.
Fields§
§id: HostId
Uniquely identifies a host on the current system.
technology: TechnologyType
The Bluetooth technologies that are supported by this adapter.
addresses: Vec<Address>
The known Classic and LE addresses associated with this Host. This is guaranteed to be nonempty. The Public Address is always first.
active: bool
Indicates whether or not this is the active host. The system has one active host which handles all Bluetooth procedures.
local_name: Option<String>
The local name of this host. This is the name that is visible to other devices when this host is in the discoverable mode. Not present if the local device name is unknown.
discoverable: bool
Whether or not the local adapter is currently discoverable over BR/EDR and LE physical channels.
discovering: bool
Whether or not device discovery is currently being performed.
Trait Implementations§
Source§impl InspectData<HostInfo> for HostInfoInspect
impl InspectData<HostInfo> for HostInfoInspect
fn new(info: &HostInfo, inspect: Node) -> HostInfoInspect
Source§impl IsInspectable for HostInfo
impl IsInspectable for HostInfo
type I = HostInfoInspect
impl StructuralPartialEq for HostInfo
Auto Trait Implementations§
impl Freeze for HostInfo
impl RefUnwindSafe for HostInfo
impl Send for HostInfo
impl Sync for HostInfo
impl Unpin for HostInfo
impl UnwindSafe for HostInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)