template <>

class WireSyncClientImpl

Defined at line 525 of file fidling/gen/sdk/fidl/fuchsia.hardware.adb/fuchsia.hardware.adb/cpp/fidl/fuchsia.hardware.adb/cpp/wire_messaging.h

Methods to make a sync FIDL call directly on an unowned handle or a

const reference to a |::fidl::ClientEnd

<

::fuchsia_hardware_adb::UsbAdbImpl>|,

avoiding setting up a client.

Public Methods

::fidl::WireResult< ::fuchsia_hardware_adb::UsbAdbImpl::QueueTx> QueueTx (::fidl::VectorView<uint8_t> data)

Request transmission of the packet in |data|.

Return status indicates queue state:

ZX_OK: Packet has been enqueued.

Other: Packet could not be enqueued.

Upon a return of ZX_OK, the packet has been enqueued, but no information is returned as to

the completion state of the transmission itself.

Allocates 32 bytes of response buffer on the stack. Request is heap-allocated.

::fidl::WireResult< ::fuchsia_hardware_adb::UsbAdbImpl::Receive> Receive ()

Request to receive data. This method ensures flow control by allowing the client to queue

|Receive| requests proactively. The driver will complete the requests only when data is

available.

Return data or error.

ZX_OK: Success. data is valid.

ZX_ERR_BAD_STATE: Subsequent requests will not succeed as well.

Other error codes are from underlying subsystem and the caller should retry |Receive| in

that case.

Allocates 16 bytes of request buffer on the stack. Response is heap-allocated.