template <>
class Server
Defined at line 2087 of file fidling/gen/sdk/fidl/fuchsia.component.sandbox/fuchsia.component.sandbox/cpp/fidl/fuchsia.component.sandbox/cpp/natural_messaging.h
Public Methods
void GetNext (GetNextRequest & request, GetNextCompleter::Sync & completer)
Returns the next batch of results for a [Dictionary.Enumerate] call, returning up to
`limit` results. `limit` can be at most [MAX_DICTIONARY_ITERATOR_CHUNK].
The value of each of `items` is a duplicate of the original capability
([CapabilityStore.Duplicate]), unless it could not be duplicated, it which case it will
be null.
Each returned capability will be assigned a monotonically increasing [CapabilityId] starting
from `start_id`.
In addition to the `items`, returns `end_id`, which is one more than the highest id reserved
by [GetNext]. `end_id` can be used as the `start_id` for the next call to [GetNext].
If [GetNext] returns an error, the server will also close the channel.
Errors:
- `ID_ALREADY_EXISTS` if some id in the range `[start_id, limit)` already exists in this
store.
- `INVALID_ARGS` if `limit` was `0` or greater than `MAX_DICTIONARY_ITERATOR_CHUNK`.
void Server ()
Defined at line 2090 of file fidling/gen/sdk/fidl/fuchsia.component.sandbox/fuchsia.component.sandbox/cpp/fidl/fuchsia.component.sandbox/cpp/natural_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 ~Server ()
Defined at line 2091 of file fidling/gen/sdk/fidl/fuchsia.component.sandbox/fuchsia.component.sandbox/cpp/fidl/fuchsia.component.sandbox/cpp/natural_messaging.h