Skip to main content

Module database

Module database 

Source
Expand description

A thin typed-access layer over a caller-supplied request executor.

hap-model stays transport-agnostic: AccessoryDatabase does not know about sockets or sessions. The caller provides a RequestExecutor that actually performs an HTTP request over a secure session; the database turns that into typed /accessories and /characteristics operations.

Structs§

AccessoryDatabase
Typed access to an accessory’s attribute database over an executor.

Enums§

Request
One HAP request the executor must perform, described abstractly.

Traits§

RequestExecutor
Something that can perform a HAP Request and return the response body.