class Sync
Defined at line 271 of file ../../sdk/lib/fidl/cpp/wire/include/lib/fidl/cpp/wire/transaction.h
The server handler function will be given FooCompleter::Sync
&
, an object tailor made for
the specific method call. It only exposes methods to send the corresponding reply type
given the request. The completer wraps a |fidl::Transaction|. The handler must interact
with the sync responder in one way or another. If the handler forgets to e.g. reply the
request, it will result in a run-time assert.
Public Methods
void Sync (Transaction * borrowed_transaction)
Defined at line 273 of file ../../sdk/lib/fidl/cpp/wire/include/lib/fidl/cpp/wire/transaction.h
void Sync (Sync && other)
The sync completer is provided to message handlers as a reference;
it cannot be moved and must be used up synchronously in the case
of a two-way FIDL method.
Defined at line 279 of file ../../sdk/lib/fidl/cpp/wire/include/lib/fidl/cpp/wire/transaction.h
Sync & operator= (Sync && other)
Defined at line 280 of file ../../sdk/lib/fidl/cpp/wire/include/lib/fidl/cpp/wire/transaction.h
Async ToAsync ()
Move a sync responder to its async counterpart, such that the reply could be
issued asynchronously. This causes the transaction to be moved to heap.
Defined at line 284 of file ../../sdk/lib/fidl/cpp/wire/include/lib/fidl/cpp/wire/transaction.h