pub enum StorageAdminRequest {
OpenStorage {
relative_moniker: String,
object: ServerEnd<NodeMarker>,
responder: StorageAdminOpenStorageResponder,
},
ListStorageInRealm {
relative_moniker: String,
iterator: ServerEnd<StorageIteratorMarker>,
responder: StorageAdminListStorageInRealmResponder,
},
OpenComponentStorageById {
id: String,
object: ServerEnd<NodeMarker>,
responder: StorageAdminOpenComponentStorageByIdResponder,
},
DeleteComponentStorage {
relative_moniker: String,
responder: StorageAdminDeleteComponentStorageResponder,
},
GetStatus {
responder: StorageAdminGetStatusResponder,
},
DeleteAllStorageContents {
responder: StorageAdminDeleteAllStorageContentsResponder,
},
}
Variants§
OpenStorage
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.
ListStorageInRealm
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.
Fields
iterator: ServerEnd<StorageIteratorMarker>
responder: StorageAdminListStorageInRealmResponder
OpenComponentStorageById
Opens the isolated directory for the given storage ID. Creates the backing sub-directory for this storage if it hasn’t yet been created.
Fields
object: ServerEnd<NodeMarker>
DeleteComponentStorage
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.
GetStatus
Get the current status of the storage.
Fields
responder: StorageAdminGetStatusResponder
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 Error::INTERNAL only if no storage at all could be cleared. Returns successfully even if some errors happen during the deletion progress.
Fields
Implementations§
Source§impl StorageAdminRequest
impl StorageAdminRequest
pub fn into_open_storage( self, ) -> Option<(String, ServerEnd<NodeMarker>, StorageAdminOpenStorageResponder)>
pub fn into_list_storage_in_realm( self, ) -> Option<(String, ServerEnd<StorageIteratorMarker>, StorageAdminListStorageInRealmResponder)>
pub fn into_open_component_storage_by_id( self, ) -> Option<(String, ServerEnd<NodeMarker>, StorageAdminOpenComponentStorageByIdResponder)>
pub fn into_delete_component_storage( self, ) -> Option<(String, StorageAdminDeleteComponentStorageResponder)>
pub fn into_get_status(self) -> Option<StorageAdminGetStatusResponder>
pub fn into_delete_all_storage_contents( self, ) -> Option<StorageAdminDeleteAllStorageContentsResponder>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL