template <>

class WireServer

Defined at line 1003 of file fidling/gen/sdk/fidl/fuchsia.hardware.usb.peripheral/fuchsia.hardware.usb.peripheral/cpp/fidl/fuchsia.hardware.usb.peripheral/cpp/wire_messaging.h

Pure-virtual interface to be implemented by a server.

This interface uses typed channels (i.e. |::fidl::ClientEnd

<

::fuchsia_hardware_usb_peripheral::Device>|

and |::fidl::ServerEnd

<

::fuchsia_hardware_usb_peripheral::Device>|).

Public Methods

void SetConfiguration (::fuchsia_hardware_usb_peripheral::wire::DeviceSetConfigurationRequest * 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 (::fuchsia_hardware_usb_peripheral::wire::DeviceSetStateChangeListenerRequest * request, SetStateChangeListenerCompleter::Sync & completer)

Adds a state change listener that is invoked when a state change completes.

void WireServer ()

Defined at line 1006 of file fidling/gen/sdk/fidl/fuchsia.hardware.usb.peripheral/fuchsia.hardware.usb.peripheral/cpp/fidl/fuchsia.hardware.usb.peripheral/cpp/wire_messaging.h

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 ~WireServer ()

Defined at line 1007 of file fidling/gen/sdk/fidl/fuchsia.hardware.usb.peripheral/fuchsia.hardware.usb.peripheral/cpp/fidl/fuchsia.hardware.usb.peripheral/cpp/wire_messaging.h