template <>

class WireServer

Defined at line 537 of file fidling/gen/sdk/fidl/fuchsia.exception/fuchsia.exception/cpp/fidl/fuchsia.exception/cpp/wire_messaging.h

Pure-virtual interface to be implemented by a server.

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

<

::fuchsia_exception::Handler>|

and |::fidl::ServerEnd

<

::fuchsia_exception::Handler>|).

Public Methods

void IsActive (IsActiveCompleter::Sync & completer)

Requests the exception handler to send a signal indicating the server is

active and able to respond to requests.

It's recommended clients call IsActive and wait for a response before

sending an exception to the server with OnException because a

zx.Handle:EXCEPTION can't be released by the client once it's sent

across the channel.

Note: a response guarantees the server was active when it sent the

response, but doesn't preclcude the server being unresponsive after the

reply was sent.

void OnException (::fuchsia_exception::wire::HandlerOnExceptionRequest * request, OnExceptionCompleter::Sync & completer)

This exception mirrors closely the information provided by exception

channels. The design is to have clients of this API behave as closely as

possible to native exception handlers that are listening to an exception

channel.

`exception` is an exception handle, which controls the exception's

lifetime. See exception zircon docs for more information.

`info` represents basic exception information as provided by the

exception channel.

void WireServer ()

Defined at line 540 of file fidling/gen/sdk/fidl/fuchsia.exception/fuchsia.exception/cpp/fidl/fuchsia.exception/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 541 of file fidling/gen/sdk/fidl/fuchsia.exception/fuchsia.exception/cpp/fidl/fuchsia.exception/cpp/wire_messaging.h