Struct btleplug::platform::Adapter[][src]

pub struct Adapter { /* fields omitted */ }
Expand description

Implementation of api::Central.

Trait Implementations

Retrieve a stream of CentralEvents. This stream will receive notifications when events occur for this Central module. See CentralEvent for the full set of possible events. Read more

Starts a scan for BLE devices. This scan will generally continue until explicitly stopped, although this may depend on your Bluetooth adapter. Discovered devices will be announced to subscribers of events and will be available via peripherals(). Read more

Stops scanning for BLE devices.

Returns the list of Peripherals that have been discovered so far. Note that this list may contain peripherals that are no longer available. Read more

Returns a particular Peripheral by its address if it has been discovered.

Add a Peripheral from a MAC address without a scan result. Not supported on all Bluetooth systems.

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. 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.