template <>
class WireSyncClientImpl
Defined at line 3174 of file fidling/gen/sdk/fidl/fuchsia.web/fuchsia.web/cpp/fidl/fuchsia.web/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_web::MessagePort>|,
avoiding setting up a client.
Public Methods
::fidl::WireResult< ::fuchsia_web::MessagePort::PostMessage> PostMessage (::fuchsia_web::wire::WebMessage message)
Sends a [`WebMessage`] to the peer. These are processed in order, one at a
time. It is not necessary for the caller to wait for the completion callback before calling
[`MessagePort.PostMessage`] again.
If an error occurred, the [`FrameError`] will be set to one of these value:
- `BUFFER_NOT_UTF8`: The script in `message`'s `data` property is not UTF-8 encoded.
- `NO_DATA_IN_MESSAGE`: The `data` property is missing in `message`.
Allocates 32 bytes of response buffer on the stack. Request is heap-allocated.
::fidl::WireResult< ::fuchsia_web::MessagePort::ReceiveMessage> ReceiveMessage ()
Asynchronously reads the next message from the channel. The client should invoke the
callback when it is ready to process another message. Unreceived messages are buffered
on the sender's side and bounded by its available resources.
Allocates 16 bytes of request buffer on the stack. Response is heap-allocated.