rust/bt-common: Add interactive debug traits

Define two debug traits:
 - CommandSet trait allows a set of commands to be provided
 - CommandRunner provides a way to run those commands

Intended to be used for interactive debugging and testing.
Add commands for bt-pacs.

Add FromCharacteristic::try_read, attempting to read and decode data from a
characteristic if it matches the UUID of the type.

Bug: fxbug.dev/308483257

Change-Id: I56062f0604a05b94c8579f17b07991cf9b452c08
Reviewed-on: https://bluetooth-review.git.corp.google.com/c/bluetooth/+/1460
Reviewed-by: Ani Ramakrishnan <aniramakri@google.com>
Reviewed-by: Dayeong Lee <dayeonglee@google.com>
8 files changed
tree: 57e6e3b24124bfca2b9fcda38d7e8bfc0395ce35
  1. docs/
  2. rust/
  3. .gitignore
  4. AUTHORS
  5. CONTRIBUTING.md
  6. LICENSE
  7. OWNERS
  8. PATENTS
  9. README.md
README.md

Bluetooth Shared Libraries

What is this?

This is a repository for shared source libraries that can be useful for multiple Bluetooth stacks. Many of these are meant to be stack-agnostic and platform-agnostic and implement a useful part of a published Bluetooth specification.

It has been started as a repository for developing Rust crates but can be easily expanded to include libraries for other languages.

Structure

  • rust - Rust Crates