template <>
class WireServer
Defined at line 8760 of file fidling/gen/sdk/fidl/fuchsia.sys2/fuchsia.sys2/cpp/fidl/fuchsia.sys2/cpp/wire_messaging.h
Pure-virtual interface to be implemented by a server.
This interface uses typed channels (i.e. |::fidl::ClientEnd
<
::fuchsia_sys2::StorageAdmin>|
and |::fidl::ServerEnd
<
::fuchsia_sys2::StorageAdmin>|).
Public Methods
void OpenStorage (::fuchsia_sys2::wire::StorageAdminOpenStorageRequest * request, OpenStorageCompleter::Sync & completer)
Opens the isolated directory for the given component. The open request will provision
the storage if it hasn't been already.
void ListStorageInRealm (::fuchsia_sys2::wire::StorageAdminListStorageInRealmRequest * request, ListStorageInRealmCompleter::Sync & completer)
Lists the descendant components under the specified realm that use the storage
capability.
Returns INSTANCE_NOT_FOUND if the realm does not exist, and INVALID_ARGS if
|relative_moniker| is malformed.
void OpenComponentStorageById (::fuchsia_sys2::wire::StorageAdminOpenComponentStorageByIdRequest * request, OpenComponentStorageByIdCompleter::Sync & completer)
Opens the isolated directory for the given storage ID. The open request will provision
the storage if it hasn't been already.
void DeleteComponentStorage (::fuchsia_sys2::wire::StorageAdminDeleteComponentStorageRequest * request, DeleteComponentStorageCompleter::Sync & completer)
Deletes the contents of the storage for this component. The moniker can be a regular
moniker (ie, "foo/bar") or a moniker with internal instance IDs (unusual, ie, "foo:0/bar:0").
Preserves the component's subdirectory itself within the storage backing directory.
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 fuchsia.component.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 8763 of file fidling/gen/sdk/fidl/fuchsia.sys2/fuchsia.sys2/cpp/fidl/fuchsia.sys2/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 8764 of file fidling/gen/sdk/fidl/fuchsia.sys2/fuchsia.sys2/cpp/fidl/fuchsia.sys2/cpp/wire_messaging.h