pub struct Handle(pub u64);
Expand description
Handles are used as local-to-your-code identifiers for Characteristics and Descriptors.
Their value should be treated as opaque by clients of PeerService, and are explicitly not guaranteed to be equal to a peer’s attribute handles. Stack implementations should provide unique handles for each Characteristic and Descriptor within a PeerService for the client. It is not necessary or expected for different clients of the same service to have the same handles.
For LocalService publishing, Service Definitions are required to have no duplicate Handles across their defined Characteristics and Descriptors. Characteristic and ServiceDefinition will check and return Error::DuplicateHandle. Handles in ServiceDefinitions should not match the attribute handles in the local GATT server. They are local to your code for use in correlating with ServiceEvents from peers. Stacks must translate the actual GATT handles to the handles provided in the ServiceDefinition for these events.
Tuple Fields§
§0: u64