rust/bt-common: Type for Ltv decode Errors

Add core::ltv::Error which is used for decoding types that
implement Ltv.

This new error type produces better error text as well as exposing the
type of the items that had problems decoding, which is needed for some
upcoming ASCS responses.

Test: updated unit tests; cargo test
Change-Id: Ibe4efae2ae0d1ecffea5a5e6a5fec1b364fd1f8a
Reviewed-on: https://bluetooth-review.git.corp.google.com/c/bluetooth/+/1720
Reviewed-by: Ani Ramakrishnan <aniramakri@google.com>
1 file changed
tree: c3e27282d648efa3938ac219172aad99bbfc91bc
  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