Skip to main content

Module error

Module error 

Source
Expand description

Errors, named after the DOMExceptions the Web Bluetooth spec throws.

Keeping the spec’s names — rather than inventing Rust-flavoured ones — means code ported from JavaScript matches failures the same way, and the reason a given operation failed is looked up in the same place.

Enums§

Authorization
Whether this process may use Bluetooth at all.
Availability
Why Bluetooth is not currently usable.
Error
Why a Web Bluetooth operation failed.

Type Aliases§

Result
The result of any Web Bluetooth operation.