class ServiceClient
Defined at line 880 of file fidling/gen/sdk/fidl/fuchsia.hardware.power.battery/fuchsia.hardware.power.battery/cpp/fidl/fuchsia.hardware.power.battery/cpp/wire_messaging.h
Client protocol for connecting to member protocols of a service instance.
Public Methods
void ServiceClient (::zx::channel dir, ::fidl::internal::ConnectMemberFunc connect_func)
Defined at line 884 of file fidling/gen/sdk/fidl/fuchsia.hardware.power.battery/fuchsia.hardware.power.battery/cpp/fidl/fuchsia.hardware.power.battery/cpp/wire_messaging.h
::zx::result<> connect_battery (::fidl::ServerEnd< ::fuchsia_hardware_power_battery::Battery> server_end)
Connects |server_end| to the member protocol "battery".
# Errors
On failure, returns a |zx::error| with status != ZX_OK.
Failures can occur if there was an issue making a |fuchsia.io.Directory/Open| call.
Since the call to |Open| is asynchronous, an error sent by the remote end will not
result in a failure of this method. Any errors sent by the remote will appear on
the reciprocal |ClientEnd| for the |ServerEnd| passed into this method.
Defined at line 897 of file fidling/gen/sdk/fidl/fuchsia.hardware.power.battery/fuchsia.hardware.power.battery/cpp/fidl/fuchsia.hardware.power.battery/cpp/wire_messaging.h
::zx::result< ::fidl::ClientEnd< ::fuchsia_hardware_power_battery::Battery>> connect_battery ()
Connects to the member protocol "battery".
# Errors
On failure, returns a |zx::error| with status != ZX_OK.
Failures can occur if channel creation failed, or if there was an issue making
a |fuchsia.io.Directory/Open| call.
Since the call to |Open| is asynchronous, an error sent by the remote end will not
result in a failure of this method. Any errors sent by the remote will appear on
the |ClientEnd| returned from this method.
Defined at line 915 of file fidling/gen/sdk/fidl/fuchsia.hardware.power.battery/fuchsia.hardware.power.battery/cpp/fidl/fuchsia.hardware.power.battery/cpp/wire_messaging.h
::zx::result<> connect_power_source (::fidl::ServerEnd< ::fuchsia_hardware_power_source::Source> server_end)
Connects |server_end| to the member protocol "power_source".
# Errors
On failure, returns a |zx::error| with status != ZX_OK.
Failures can occur if there was an issue making a |fuchsia.io.Directory/Open| call.
Since the call to |Open| is asynchronous, an error sent by the remote end will not
result in a failure of this method. Any errors sent by the remote will appear on
the reciprocal |ClientEnd| for the |ServerEnd| passed into this method.
Defined at line 937 of file fidling/gen/sdk/fidl/fuchsia.hardware.power.battery/fuchsia.hardware.power.battery/cpp/fidl/fuchsia.hardware.power.battery/cpp/wire_messaging.h
::zx::result< ::fidl::ClientEnd< ::fuchsia_hardware_power_source::Source>> connect_power_source ()
Connects to the member protocol "power_source".
# Errors
On failure, returns a |zx::error| with status != ZX_OK.
Failures can occur if channel creation failed, or if there was an issue making
a |fuchsia.io.Directory/Open| call.
Since the call to |Open| is asynchronous, an error sent by the remote end will not
result in a failure of this method. Any errors sent by the remote will appear on
the |ClientEnd| returned from this method.
Defined at line 955 of file fidling/gen/sdk/fidl/fuchsia.hardware.power.battery/fuchsia.hardware.power.battery/cpp/fidl/fuchsia.hardware.power.battery/cpp/wire_messaging.h