class InstanceHandler

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

Facilitates member protocol registration for servers.

Public Methods

void InstanceHandler ()

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

void InstanceHandler (Members members)

Construct an instance handler for a FIDL service. Protocol handlers not present in |members|

will not be registered.

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

::zx::result<> add_device (MemberHandler< ::fuchsia_hardware_usb_phy::UsbPhy> handler)

Adds member "device" to the service instance. |handler| will be

invoked on connection attempts.

# Errors

Returns ZX_ERR_ALREADY_EXISTS if the member was already added.

Returns ZX_ERR_INVALID_ARGS if |handler| is not initialized.

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

Records