template <>
class WireServer
Defined at line 737 of file fidling/gen/sdk/fidl/fuchsia.hardware.usb.phy/fuchsia.hardware.usb.phy/cpp/fidl/fuchsia.hardware.usb.phy/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_phy::ConnectionWatcher>|
and |::fidl::ServerEnd
<
::fuchsia_hardware_usb_phy::ConnectionWatcher>|).
Public Methods
void WatchConnectStatusChanged (::fuchsia_hardware_usb_phy::wire::ConnectionWatcherWatchConnectStatusChangedRequest * 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.
void WireServer ()
Defined at line 740 of file fidling/gen/sdk/fidl/fuchsia.hardware.usb.phy/fuchsia.hardware.usb.phy/cpp/fidl/fuchsia.hardware.usb.phy/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 741 of file fidling/gen/sdk/fidl/fuchsia.hardware.usb.phy/fuchsia.hardware.usb.phy/cpp/fidl/fuchsia.hardware.usb.phy/cpp/wire_messaging.h