template <>

class WireServer

Defined at line 2417 of file fidling/gen/sdk/fidl/fuchsia.diagnostics/fuchsia.diagnostics/cpp/fidl/fuchsia.diagnostics/cpp/wire_messaging.h

Pure-virtual interface to be implemented by a server.

This interface uses typed channels (i.e. |::fidl::ClientEnd

<

::fuchsia_diagnostics::ArchiveAccessor>|

and |::fidl::ServerEnd

<

::fuchsia_diagnostics::ArchiveAccessor>|).

Public Methods

void StreamDiagnostics (::fuchsia_diagnostics::wire::ArchiveAccessorStreamDiagnosticsRequest * request, StreamDiagnosticsCompleter::Sync & completer)

Creates an iterator over diagnostics data on the system.

* The iterator may be finite by streaming in SNAPSHOT mode, serving only the

current state of diagnostics data on the system.

* The iterator may be infinite by streaming in either SNAPSHOT_THEN_SUBSCRIBE

or SUBSCRIBE mode; the prior first provides iteration over the current state of

the sytem, and then both provide ongoing iteration over newly arriving diagnostics

data.

+ request `result stream` a [fuchsia.diagnostics/BatchIterator] that diagnostic

records are exposed to the client over.

* epitaphs:

- INVALID_ARGS: A required argument in the StreamParameters struct was missing.

- WRONG_TYPE: A selector provided by the StreamParameters struct was incorrectly

formatted.

+ request `stream_parameters` is a [fuchsia.diagnostics/StreamParameter] which

specifies how to configure the stream.

void WaitForReady (WaitForReadyCompleter::Sync & completer)

Ensures that the connection with the server was established to prevent

races when using other pipelined methods of this protocol.

void WireServer ()

Defined at line 2420 of file fidling/gen/sdk/fidl/fuchsia.diagnostics/fuchsia.diagnostics/cpp/fidl/fuchsia.diagnostics/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 2421 of file fidling/gen/sdk/fidl/fuchsia.diagnostics/fuchsia.diagnostics/cpp/fidl/fuchsia.diagnostics/cpp/wire_messaging.h