template <>
class Server
Defined at line 345 of file fidling/gen/sdk/fidl/fuchsia.hardware.usb.peripheral/fuchsia.hardware.usb.peripheral/cpp/fidl/fuchsia.hardware.usb.peripheral/cpp/natural_messaging.h
Public Methods
void Server ()
Defined at line 348 of file fidling/gen/sdk/fidl/fuchsia.hardware.usb.peripheral/fuchsia.hardware.usb.peripheral/cpp/fidl/fuchsia.hardware.usb.peripheral/cpp/natural_messaging.h
void SetConfiguration (SetConfigurationRequest & request, SetConfigurationCompleter::Sync & completer)
Sets the device's descriptors, adds the functions and creates the child devices for the
configuration's interfaces.
At least one function descriptor must be provided.
void ClearFunctions (ClearFunctionsCompleter::Sync & completer)
Tells the device to remove the child devices for the configuration's interfaces
and reset the list of functions to empty.
The caller should wait for the `FunctionsCleared` event.
void SetStateChangeListener (SetStateChangeListenerRequest & request, SetStateChangeListenerCompleter::Sync & completer)
Adds a state change listener that is invoked when a state change completes.
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 349 of file fidling/gen/sdk/fidl/fuchsia.hardware.usb.peripheral/fuchsia.hardware.usb.peripheral/cpp/fidl/fuchsia.hardware.usb.peripheral/cpp/natural_messaging.h