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,
},
DeprecatedOpenComponentStorage {
relative_moniker: String,
flags: OpenFlags,
mode: ModeType,
object: ServerEnd<NodeMarker>,
control_handle: StorageAdminControlHandle,
},
}
Variants§
OpenStorage
Opens the isolated directory for the given component. The open request will provision the storage if it hasn’t been already.
ListStorageInRealm
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.
Fields
iterator: ServerEnd<StorageIteratorMarker>
responder: StorageAdminListStorageInRealmResponder
OpenComponentStorageById
Opens the isolated directory for the given storage ID. The open request will provision the storage if it hasn’t been already.
Fields
object: ServerEnd<NodeMarker>
DeleteComponentStorage
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.
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 fuchsia.component.Error::INTERNAL only if no storage at all could be cleared. Returns successfully even if some errors happen during the deletion progress.
Fields
DeprecatedOpenComponentStorage
[DEPRECATED - Use OpenStorage instead.]
Opens the isolated directory for the given component. The open request will provision the storage if it hasn’t been already.
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>
pub fn into_deprecated_open_component_storage( self, ) -> Option<(String, OpenFlags, ModeType, ServerEnd<NodeMarker>, StorageAdminControlHandle)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL