pub struct HostInfo {
    pub id: Option<HostId>,
    pub technology: Option<TechnologyType>,
    pub active: Option<bool>,
    pub local_name: Option<String>,
    pub discoverable: Option<bool>,
    pub discovering: Option<bool>,
    pub addresses: Option<Vec<Address>>,
    /* private fields */
}Expand description
Information about a Bluetooth controller and its associated host-subsystem state.
Fields§
§id: Option<HostId>Uniquely identifies a host on the current system.
This field is always present.
technology: Option<TechnologyType>The Bluetooth technologies that are supported by this adapter.
This field is always present.
active: Option<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.
discoverable: Option<bool>Whether or not the local adapter is currently discoverable over BR/EDR and LE physical channels.
discovering: Option<bool>Whether or not device discovery is currently being performed.
addresses: Option<Vec<Address>>The addresses (LE and/or BR/EDR) associated with the host.
The Public address is always reported first.
This field is always present.
Trait Implementations§
Source§impl<D> Decode<HostInfo, D> for HostInfowhere
    D: ResourceDialect,
 
impl<D> Decode<HostInfo, D> for HostInfowhere
    D: ResourceDialect,
Source§impl TypeMarker for HostInfo
 
impl TypeMarker for HostInfo
Source§fn inline_align(_context: Context) -> usize
 
fn inline_align(_context: Context) -> usize
Source§fn inline_size(_context: Context) -> usize
 
fn inline_size(_context: Context) -> usize
inline_align.Source§fn encode_is_copy() -> bool
 
fn encode_is_copy() -> bool
Self::Owned matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned to a single memcpy. Read moreSource§fn decode_is_copy() -> bool
 
fn decode_is_copy() -> bool
Self::Owned matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned to a single memcpy.Source§impl ValueTypeMarker for HostInfo
 
impl ValueTypeMarker for HostInfo
Source§type Borrowed<'a> = &'a HostInfo
 
type Borrowed<'a> = &'a HostInfo
Encode<Self>
type cheaply obtainable from &Self::Owned. There are three cases: Read moreSource§fn borrow(
    value: &<HostInfo as TypeMarker>::Owned,
) -> <HostInfo as ValueTypeMarker>::Borrowed<'_>
 
fn borrow( value: &<HostInfo as TypeMarker>::Owned, ) -> <HostInfo as ValueTypeMarker>::Borrowed<'_>
&Self::Owned to Self::Borrowed.