template <>

class Server

Defined at line 320 of file fidling/gen/sdk/fidl/fuchsia.hardware.usb.phy/fuchsia.hardware.usb.phy/cpp/fidl/fuchsia.hardware.usb.phy/cpp/natural_messaging.h

Public Methods

void Server ()

Defined at line 323 of file fidling/gen/sdk/fidl/fuchsia.hardware.usb.phy/fuchsia.hardware.usb.phy/cpp/fidl/fuchsia.hardware.usb.phy/cpp/natural_messaging.h

void WatchConnectStatusChanged (WatchConnectStatusChangedRequest & request, WatchConnectStatusChangedCompleter::Sync & completer)

Hanging-get that notifies callers when USB has been connected or

disconnected. Returns immediately on the first call, or if the

connection status has changed since the last call.

If present, `setup_wake_lease` will be used to keep the system awake while the call is being

processed. In this case a new wake lease will be acquired and passed back through

`wake_lease`. `wake_lease` will be present iff `setup_wake_lease` was present.

Returns:

- `ZX_ERR_BAD_STATE`: A hanging-get call was already pending.

- `ZX_ERR_NO_RESOURCES`: `setup_wake_lease` was present but a new wake lease could not be

acquired.

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 324 of file fidling/gen/sdk/fidl/fuchsia.hardware.usb.phy/fuchsia.hardware.usb.phy/cpp/fidl/fuchsia.hardware.usb.phy/cpp/natural_messaging.h