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: ResourceDialect> Decode<HostInfo, D> for HostInfo
impl<D: ResourceDialect> Decode<HostInfo, D> for HostInfo
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
.§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 more§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
impl Persistable for HostInfo
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§
§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
§type MarkerInResultUnion = T
type MarkerInResultUnion = T
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
)