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.
Uniquely identifies a host on the current system.
The Bluetooth technologies that are supported by this adapter.
The known Classic and LE addresses associated with this Host.
This is guaranteed to be nonempty. The Public Address is always first.
Indicates whether or not this is the active host. The system has one active host which
handles all Bluetooth procedures.
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.
Whether or not the local adapter is currently discoverable over BR/EDR and
LE physical channels.
Whether or not device discovery is currently being performed.
Performs copy-assignment from
source
.
Read more
Formats the value using the given formatter.
Read more
Formats the value using the given formatter.
Read more
Converts to this type from the input type.
Converts to this type from the input type.
This method tests for self
and other
values to be equal, and is used
by ==
.
This method tests for !=
. The default implementation is almost always
sufficient, and should not be overridden without very good reason.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Encodes the object into the encoder’s buffers. Any handles stored in the
object are swapped for
Handle::INVALID
.
Read more
Encodes the object into the encoder’s buffers. Any handles stored in the
object are swapped for
Handle::INVALID
.
Read more
Returns the argument unchanged.
Instruments this type with the provided [
Span
], returning an
Instrumented
wrapper.
Read more
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
The alignment of pointer.
The type for initializers.
Initializes a with the given initializer.
Read more
Mutably dereferences the given pointer.
Read more
Drops the object pointed to by the given pointer.
Read more
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning.
Read more
Uses borrowed data to replace owned data, usually by cloning.
Read more
Converts the given value to a
String
.
Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Fetches the ID of a vertex, which must have a string representation.