Module fuchsia_bluetooth::types::le

source ·
Expand description

Bluetooth LowEnergy types This module declares native Rust encodings equivalent to FIDL structs for the Bluetooth LowEnergy interfaces. These structs use standard Rust primitives rather than the default mapping from FIDL, and derive the Clone trait for a more ergonomic api than those exposed in the fidl_fuchsia_bluetooth_le crate.

These types also implement the From trait, so usage when receiving a fidl struct is simply a case of calling .into(...) (From implies Into):

  fn use_peer(fidl_peer: fidl_fuchsia_bluetooth_le::RemoteDevice) {
     let peer: Le::RemoteDevice = fidl_peer.into();
     ...
  }

Structs§