template <>
class WireServer
Defined at line 430 of file fidling/gen/sdk/fidl/fuchsia.feedback/fuchsia.feedback/cpp/fidl/fuchsia.feedback/cpp/wire_messaging.h
Pure-virtual interface to be implemented by a server.
This interface uses typed channels (i.e. |::fidl::ClientEnd
<
::fuchsia_feedback::CrashReportingProductRegister>|
and |::fidl::ServerEnd
<
::fuchsia_feedback::CrashReportingProductRegister>|).
Public Methods
void Upsert (::fuchsia_feedback::wire::CrashReportingProductRegisterUpsertRequest * request, UpsertCompleter::Sync & completer)
Upserts, i.e. updates or inserts, a crash reporting product for a given component URL.
A subsequent call to Upsert() for the same component URL overwrites the
`CrashReportingProduct` for that component.
Prefer UpsertWithAck() if the component also files crash reports itself, to avoid race
conditions and mis-attribution.
void UpsertWithAck (::fuchsia_feedback::wire::CrashReportingProductRegisterUpsertWithAckRequest * request, UpsertWithAckCompleter::Sync & completer)
Upserts (see above) and notifies the client when the operation is complete.
This allows clients to prevent races between filing crash reports and calls to Upsert.
Otherwise if a crash report is filed before the upsert completes, the crash report will be
attributed to the wrong product, leading to potentially incorrect crash data.
void WireServer ()
Defined at line 433 of file fidling/gen/sdk/fidl/fuchsia.feedback/fuchsia.feedback/cpp/fidl/fuchsia.feedback/cpp/wire_messaging.h
Handler bind_handler (async_dispatcher_t * dispatcher)
|bind_handler| returns a handler that binds incoming connections to this
server implementation.
The returned handler borrows the server instance.
The server must outlive the provided |dispatcher|. Only after
the dispatcher is shutdown will it be safe to destroy the servers.
The server should not be moved.
void ~WireServer ()
Defined at line 434 of file fidling/gen/sdk/fidl/fuchsia.feedback/fuchsia.feedback/cpp/fidl/fuchsia.feedback/cpp/wire_messaging.h