pub struct StorageAdminProxy { /* private fields */ }
Implementations§
Source§impl StorageAdminProxy
impl StorageAdminProxy
Sourcepub fn take_event_stream(&self) -> StorageAdminEventStream
pub fn take_event_stream(&self) -> StorageAdminEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
Sourcepub fn open_storage(
&self,
relative_moniker: &str,
object: ServerEnd<NodeMarker>,
) -> QueryResponseFut<StorageAdminOpenStorageResult, DefaultFuchsiaResourceDialect>
pub fn open_storage( &self, relative_moniker: &str, object: ServerEnd<NodeMarker>, ) -> QueryResponseFut<StorageAdminOpenStorageResult, DefaultFuchsiaResourceDialect>
Opens the isolated directory for the given component. The open request will provision the storage if it hasn’t been already.
Sourcepub fn list_storage_in_realm(
&self,
relative_moniker: &str,
iterator: ServerEnd<StorageIteratorMarker>,
) -> QueryResponseFut<StorageAdminListStorageInRealmResult, DefaultFuchsiaResourceDialect>
pub fn list_storage_in_realm( &self, relative_moniker: &str, iterator: ServerEnd<StorageIteratorMarker>, ) -> QueryResponseFut<StorageAdminListStorageInRealmResult, DefaultFuchsiaResourceDialect>
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.
Sourcepub fn open_component_storage_by_id(
&self,
id: &str,
object: ServerEnd<NodeMarker>,
) -> QueryResponseFut<StorageAdminOpenComponentStorageByIdResult, DefaultFuchsiaResourceDialect>
pub fn open_component_storage_by_id( &self, id: &str, object: ServerEnd<NodeMarker>, ) -> QueryResponseFut<StorageAdminOpenComponentStorageByIdResult, DefaultFuchsiaResourceDialect>
Opens the isolated directory for the given storage ID. The open request will provision the storage if it hasn’t been already.
Sourcepub fn delete_component_storage(
&self,
relative_moniker: &str,
) -> QueryResponseFut<StorageAdminDeleteComponentStorageResult, DefaultFuchsiaResourceDialect>
pub fn delete_component_storage( &self, relative_moniker: &str, ) -> QueryResponseFut<StorageAdminDeleteComponentStorageResult, DefaultFuchsiaResourceDialect>
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.
Sourcepub fn get_status(
&self,
) -> QueryResponseFut<StorageAdminGetStatusResult, DefaultFuchsiaResourceDialect>
pub fn get_status( &self, ) -> QueryResponseFut<StorageAdminGetStatusResult, DefaultFuchsiaResourceDialect>
Get the current status of the storage.
Sourcepub fn delete_all_storage_contents(
&self,
) -> QueryResponseFut<StorageAdminDeleteAllStorageContentsResult, DefaultFuchsiaResourceDialect>
pub fn delete_all_storage_contents( &self, ) -> QueryResponseFut<StorageAdminDeleteAllStorageContentsResult, DefaultFuchsiaResourceDialect>
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.
Sourcepub fn deprecated_open_component_storage(
&self,
relative_moniker: &str,
flags: OpenFlags,
mode: ModeType,
object: ServerEnd<NodeMarker>,
) -> Result<(), Error>
pub fn deprecated_open_component_storage( &self, relative_moniker: &str, flags: OpenFlags, mode: ModeType, object: ServerEnd<NodeMarker>, ) -> Result<(), Error>
[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.
Trait Implementations§
Source§impl Clone for StorageAdminProxy
impl Clone for StorageAdminProxy
Source§fn clone(&self) -> StorageAdminProxy
fn clone(&self) -> StorageAdminProxy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for StorageAdminProxy
impl Debug for StorageAdminProxy
Source§impl Proxy for StorageAdminProxy
impl Proxy for StorageAdminProxy
Source§type Protocol = StorageAdminMarker
type Protocol = StorageAdminMarker
Proxy
controls.Source§fn from_channel(inner: AsyncChannel) -> Self
fn from_channel(inner: AsyncChannel) -> Self
Source§fn into_channel(self) -> Result<AsyncChannel, Self>
fn into_channel(self) -> Result<AsyncChannel, Self>
Source§fn as_channel(&self) -> &AsyncChannel
fn as_channel(&self) -> &AsyncChannel
§fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
Source§impl StorageAdminProxyInterface for StorageAdminProxy
impl StorageAdminProxyInterface for StorageAdminProxy
type OpenStorageResponseFut = QueryResponseFut<Result<(), Error>>
type ListStorageInRealmResponseFut = QueryResponseFut<Result<(), Error>>
type OpenComponentStorageByIdResponseFut = QueryResponseFut<Result<(), Error>>
type DeleteComponentStorageResponseFut = QueryResponseFut<Result<(), Error>>
type GetStatusResponseFut = QueryResponseFut<Result<StorageStatus, StatusError>>
type DeleteAllStorageContentsResponseFut = QueryResponseFut<Result<(), DeletionError>>
fn open_storage( &self, relative_moniker: &str, object: ServerEnd<NodeMarker>, ) -> Self::OpenStorageResponseFut
fn list_storage_in_realm( &self, relative_moniker: &str, iterator: ServerEnd<StorageIteratorMarker>, ) -> Self::ListStorageInRealmResponseFut
fn open_component_storage_by_id( &self, id: &str, object: ServerEnd<NodeMarker>, ) -> Self::OpenComponentStorageByIdResponseFut
fn delete_component_storage( &self, relative_moniker: &str, ) -> Self::DeleteComponentStorageResponseFut
fn get_status(&self) -> Self::GetStatusResponseFut
fn delete_all_storage_contents( &self, ) -> Self::DeleteAllStorageContentsResponseFut
fn deprecated_open_component_storage( &self, relative_moniker: &str, flags: OpenFlags, mode: ModeType, object: ServerEnd<NodeMarker>, ) -> Result<(), Error>
Auto Trait Implementations§
impl Freeze for StorageAdminProxy
impl !RefUnwindSafe for StorageAdminProxy
impl Send for StorageAdminProxy
impl Sync for StorageAdminProxy
impl Unpin for StorageAdminProxy
impl !UnwindSafe for StorageAdminProxy
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)