template <>

class WireServer

Defined at line 7429 of file fidling/gen/sdk/fidl/fuchsia.component/fuchsia.component/cpp/fidl/fuchsia.component/cpp/wire_messaging.h

Pure-virtual interface to be implemented by a server.

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

<

::fuchsia_component::StorageAdmin>|

and |::fidl::ServerEnd

<

::fuchsia_component::StorageAdmin>|).

Public Methods

void OpenStorage (::fuchsia_component::wire::StorageAdminOpenStorageRequest * request, OpenStorageCompleter::Sync & completer)

Opens the isolated directory for the given component. The provided

moniker is relative to the component that declares the storage

capability. Creates the backing sub-directory for this storage if it

hasn't yet been created.

void ListStorageInRealm (::fuchsia_component::wire::StorageAdminListStorageInRealmRequest * request, ListStorageInRealmCompleter::Sync & completer)

Lists the descendant components under the specified realm that use the

storage capability. The provided moniker is relative to the component

that declares the storage capability.

Returns INSTANCE_NOT_FOUND if the realm does not exist, and INVALID_ARGS

if |relative_moniker| is malformed.

void OpenComponentStorageById (::fuchsia_component::wire::StorageAdminOpenComponentStorageByIdRequest * request, OpenComponentStorageByIdCompleter::Sync & completer)

Opens the isolated directory for the given storage ID. Creates the

backing sub-directory for this storage if it hasn't yet been created.

void DeleteComponentStorage (::fuchsia_component::wire::StorageAdminDeleteComponentStorageRequest * request, DeleteComponentStorageCompleter::Sync & completer)

Deletes the contents of the storage for this component. Preserves the

component's subdirectory itself within the storage backing directory.

The provided moniker is relative to the component that declares the

storage capability.

void GetStatus (GetStatusCompleter::Sync & completer)

Get the current status of the storage.

void DeleteAllStorageContents (DeleteAllStorageContentsCompleter::Sync & completer)

Deletes the contents of all the storage. Storage directories are

retained so any components using storage will be able to continue using

it to create new files and directories.

Returns Error::INTERNAL only if no storage at all could be cleared.

Returns successfully even if some errors happen during the deletion

progress.

void WireServer ()

Defined at line 7432 of file fidling/gen/sdk/fidl/fuchsia.component/fuchsia.component/cpp/fidl/fuchsia.component/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 7433 of file fidling/gen/sdk/fidl/fuchsia.component/fuchsia.component/cpp/fidl/fuchsia.component/cpp/wire_messaging.h