template <>

class WireSyncClientImpl

Defined at line 8453 of file fidling/gen/sdk/fidl/fuchsia.sys2/fuchsia.sys2/cpp/fidl/fuchsia.sys2/cpp/wire_messaging.h

Methods to make a sync FIDL call directly on an unowned handle or a

const reference to a |::fidl::ClientEnd

<

::fuchsia_sys2::StorageAdmin>|,

avoiding setting up a client.

Public Methods

::fidl::WireResult< ::fuchsia_sys2::StorageAdmin::OpenStorage> OpenStorage (::fidl::StringView relative_moniker, ::fidl::ServerEnd< ::fuchsia_io::Node> && object)

Opens the isolated directory for the given component. The open request will provision

the storage if it hasn't been already.

Allocates 32 bytes of response buffer on the stack. Request is heap-allocated.

::fidl::WireResult< ::fuchsia_sys2::StorageAdmin::ListStorageInRealm> ListStorageInRealm (::fidl::StringView relative_moniker, ::fidl::ServerEnd< ::fuchsia_sys2::StorageIterator> && iterator)

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.

Allocates 32 bytes of response buffer on the stack. Request is heap-allocated.

::fidl::WireResult< ::fuchsia_sys2::StorageAdmin::OpenComponentStorageById> OpenComponentStorageById (::fidl::StringView id, ::fidl::ServerEnd< ::fuchsia_io::Node> && object)

Opens the isolated directory for the given storage ID. The open request will provision

the storage if it hasn't been already.

Allocates 136 bytes of message buffer on the stack. No heap allocation necessary.

::fidl::WireResult< ::fuchsia_sys2::StorageAdmin::DeleteComponentStorage> DeleteComponentStorage (::fidl::StringView relative_moniker)

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.

Allocates 32 bytes of response buffer on the stack. Request is heap-allocated.

::fidl::WireResult< ::fuchsia_sys2::StorageAdmin::GetStatus> GetStatus ()

Get the current status of the storage.

Allocates 16 bytes of request buffer on the stack. Response is heap-allocated.

::fidl::WireResult< ::fuchsia_sys2::StorageAdmin::DeleteAllStorageContents> DeleteAllStorageContents ()

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.

Allocates 48 bytes of message buffer on the stack. No heap allocation necessary.