template <>
class Server
Defined at line 663 of file fidling/gen/sdk/fidl/fuchsia.hardware.hidbus/fuchsia.hardware.hidbus/cpp/fidl/fuchsia.hardware.hidbus/cpp/natural_messaging.h
Public Methods
void Query (QueryCompleter::Sync & completer)
Obtain information about the hidbus device and supported features.
Safe to call at any time.
void Server ()
Defined at line 666 of file fidling/gen/sdk/fidl/fuchsia.hardware.hidbus/fuchsia.hardware.hidbus/cpp/fidl/fuchsia.hardware.hidbus/cpp/natural_messaging.h
void Start (StartCompleter::Sync & completer)
Start the hidbus device. The device may begin queueing hid reports via
OnReportReceived before this function returns. The hidbus device will
keep track of the number of times Start has been called and will only
be stopped when Stop has been called for each Start that has been
called. Theoretically, Start should not be called again by the same
client unless it has called Stop.
void Stop (StopCompleter::Sync & completer)
Stop the hidbus device.
void GetDescriptor (GetDescriptorRequest & request, GetDescriptorCompleter::Sync & completer)
Methods matching HID spec 1.11 Chapter 7 Requests
7.1.1 Get_Descriptor
void SetDescriptor (SetDescriptorRequest & request, SetDescriptorCompleter::Sync & completer)
7.1.2 Set_Descriptor (optional)
void GetReport (GetReportRequest & request, GetReportCompleter::Sync & completer)
7.2.1 Get_Report
void SetReport (SetReportRequest & request, SetReportCompleter::Sync & completer)
7.2.2 Set_Report
void GetIdle (GetIdleRequest & request, GetIdleCompleter::Sync & completer)
7.2.3 Get_Idle
void SetIdle (SetIdleRequest & request, SetIdleCompleter::Sync & completer)
7.2.4 Set_Idle
void GetProtocol (GetProtocolCompleter::Sync & completer)
7.2.5 Get_Protocol
void SetProtocol (SetProtocolRequest & request, SetProtocolCompleter::Sync & completer)
7.2.6 Set_Protocol
Handler bind_handler (async_dispatcher_t * dispatcher)
|bind_handler| returns a handler that binds incoming connections to this
server implementation.
The returned handler borrows the server instance.
The server must outlive the provided |dispatcher|. Only after
the dispatcher is shutdown will it be safe to destroy the servers.
The server should not be moved.
void ~Server ()
Defined at line 667 of file fidling/gen/sdk/fidl/fuchsia.hardware.hidbus/fuchsia.hardware.hidbus/cpp/fidl/fuchsia.hardware.hidbus/cpp/natural_messaging.h