template <>

class WireServer

Defined at line 7102 of file fidling/gen/sdk/fidl/fuchsia.audio.mixer/fuchsia.audio.mixer/cpp/fidl/fuchsia.audio.mixer/cpp/wire_messaging.h

Pure-virtual interface to be implemented by a server.

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

<

::fuchsia_audio_mixer::SyntheticClockRealm>|

and |::fidl::ServerEnd

<

::fuchsia_audio_mixer::SyntheticClockRealm>|).

Public Methods

void CreateClock (::fuchsia_audio_mixer::wire::SyntheticClockRealmCreateClockRequest * request, CreateClockCompleter::Sync & completer)

Creates a new synthetic clock.

void ForgetClock (::fuchsia_audio_mixer::wire::SyntheticClockRealmForgetClockRequest * request, ForgetClockCompleter::Sync & completer)

Forgets about a synthetic clock. This releases internal resources and

closes the clock's `SyntheticClock` channel. The clock must not be used

by any node in our parent [`Graph`]. After this returns, our parent

[`Graph`] will not recognize this handle.

* error `ZX_ERR_INVALID_ARGS` if missing a required field

* error `ZX_ERR_NOT_FOUND` if `handle` was not created by

[`CreateClock`] or if was already forgotten

* error `ZX_ERR_BAD_STATE` if `handle` is still in use

void ObserveClock (::fuchsia_audio_mixer::wire::SyntheticClockRealmObserveClockRequest * request, ObserveClockCompleter::Sync & completer)

Observes a synthetic clock. This can observe any clock created by this

realm, including clocks created by [`CreateClock`] as well as clocks

created by [`Graph.CreateGraphControlledClock`] in the parent [`Graph`].

* error `ZX_ERR_INVALID_ARGS` if missing a required field

* error `ZX_ERR_NOT_FOUND` if `handle` was not created by this realm or

if has been forgotten

void Now (::fuchsia_audio_mixer::wire::SyntheticClockRealmNowRequest * request, NowCompleter::Sync & completer)

Reads the current synthetic monotonic time.

void AdvanceBy (::fuchsia_audio_mixer::wire::SyntheticClockRealmAdvanceByRequest * request, AdvanceByCompleter::Sync & completer)

Advances synthetic monotonic time by the given duration, which must be

positive. Does not return until the graph has completed all actions that

must occur over the given duration.

* error `ZX_ERR_INVALID_ARGS` if the duration is not positive

void WireServer ()

Defined at line 7105 of file fidling/gen/sdk/fidl/fuchsia.audio.mixer/fuchsia.audio.mixer/cpp/fidl/fuchsia.audio.mixer/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 7106 of file fidling/gen/sdk/fidl/fuchsia.audio.mixer/fuchsia.audio.mixer/cpp/fidl/fuchsia.audio.mixer/cpp/wire_messaging.h