template <>
class WireServer
Defined at line 1730 of file fidling/gen/src/lib/fake-clock/fidl/fidl/cpp/fidl/fuchsia.testing/cpp/wire_messaging.h
Pure-virtual interface to be implemented by a server.
This interface uses typed channels (i.e. |::fidl::ClientEnd
<
::fuchsia_testing::FakeClock>|
and |::fidl::ServerEnd
<
::fuchsia_testing::FakeClock>|).
Public Methods
void Get (GetCompleter::Sync & completer)
Gets the current time.
void RegisterEventInMonotonic (::fuchsia_testing::wire::FakeClockRegisterEventInMonotonicRequest * request, RegisterEventInMonotonicCompleter::Sync & completer)
Registers the event handle `event` to be signaled with `ZX_EVENTPAIR_SIGNALED` when the
provided `time` is reached by the fake monotonic clock.
The `FakeClock` instance will retain this event (even after it's fired) for as long as the
client-side of the provided event pair `event` is open.
void RegisterEventInBoot (::fuchsia_testing::wire::FakeClockRegisterEventInBootRequest * request, RegisterEventInBootCompleter::Sync & completer)
Registers the event handle `event` to be signaled with `ZX_EVENTPAIR_SIGNALED` when the
provided `time` is reached by the fake boot clock.
The `FakeClock` instance will retain this event (even after it's fired) for as long as the
client-side of the provided event pair `event` is open.
void RescheduleEventInMonotonic (::fuchsia_testing::wire::FakeClockRescheduleEventInMonotonicRequest * request, RescheduleEventInMonotonicCompleter::Sync & completer)
Reschedules an event to be signalled with `ZX_EVENTPAIR_SIGNALED` at the new deadline in
`time` on the monotonic clock.
`event` is a duplicate of the client-side of the event pair, and it's used to retrieve the
originally registered event through its kernel object identifier.
void RescheduleEventInBoot (::fuchsia_testing::wire::FakeClockRescheduleEventInBootRequest * request, RescheduleEventInBootCompleter::Sync & completer)
Reschedules an event to be signalled with `ZX_EVENTPAIR_SIGNALED` at the new deadline in
`time` on the boot clock.
`event` is a duplicate of the client-side of the event pair, and it's used to retrieve the
originally registered event through its kernel object identifier.
void CancelEvent (::fuchsia_testing::wire::FakeClockCancelEventRequest * request, CancelEventCompleter::Sync & completer)
Cancels a previously registered event.
`event` is a duplicate of the client-side of the event pair, and it's used to retrieve the
originally registered event through its kernel object identifier.
void CreateNamedDeadlineInMonotonic (::fuchsia_testing::wire::FakeClockCreateNamedDeadlineInMonotonicRequest * request, CreateNamedDeadlineInMonotonicCompleter::Sync & completer)
Calculate and set a deadline associated with an id on the monotonic clock.
The returned `deadline` is calculated as `duration` after the current fake time.
FakeClock emits two events: A `SET` event immediately, and an `EXPIRED` event when the
deadline expires. A test using `FakeClockControl` may reference events related to the
deadline using a matching `id`. See `FakeClockControl.SetStopPoint` for information on how a
test can wait for a deadline event.
void CreateNamedDeadlineInBoot (::fuchsia_testing::wire::FakeClockCreateNamedDeadlineInBootRequest * request, CreateNamedDeadlineInBootCompleter::Sync & completer)
Calculate and set a deadline associated with an id on the boot clock.
The returned `deadline` is calculated as `duration` after the current fake time.
FakeClock emits two events: A `SET` event immediately, and an `EXPIRED` event when the
deadline expires. A test using `FakeClockControl` may reference events related to the
deadline using a matching `id`. See `FakeClockControl.SetStopPoint` for information on how a
test can wait for a deadline event.
void WireServer ()
Defined at line 1733 of file fidling/gen/src/lib/fake-clock/fidl/fidl/cpp/fidl/fuchsia.testing/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 1734 of file fidling/gen/src/lib/fake-clock/fidl/fidl/cpp/fidl/fuchsia.testing/cpp/wire_messaging.h