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, FDomainResourceDialect>
pub fn open_storage( &self, relative_moniker: &str, object: ServerEnd<NodeMarker>, ) -> QueryResponseFut<StorageAdminOpenStorageResult, FDomainResourceDialect>
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.
Sourcepub fn list_storage_in_realm(
&self,
relative_moniker: &str,
iterator: ServerEnd<StorageIteratorMarker>,
) -> QueryResponseFut<StorageAdminListStorageInRealmResult, FDomainResourceDialect>
pub fn list_storage_in_realm( &self, relative_moniker: &str, iterator: ServerEnd<StorageIteratorMarker>, ) -> QueryResponseFut<StorageAdminListStorageInRealmResult, FDomainResourceDialect>
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.
Sourcepub fn open_component_storage_by_id(
&self,
id: &str,
object: ServerEnd<NodeMarker>,
) -> QueryResponseFut<StorageAdminOpenComponentStorageByIdResult, FDomainResourceDialect>
pub fn open_component_storage_by_id( &self, id: &str, object: ServerEnd<NodeMarker>, ) -> QueryResponseFut<StorageAdminOpenComponentStorageByIdResult, FDomainResourceDialect>
Opens the isolated directory for the given storage ID. Creates the backing sub-directory for this storage if it hasn’t yet been created.
Sourcepub fn delete_component_storage(
&self,
relative_moniker: &str,
) -> QueryResponseFut<StorageAdminDeleteComponentStorageResult, FDomainResourceDialect>
pub fn delete_component_storage( &self, relative_moniker: &str, ) -> QueryResponseFut<StorageAdminDeleteComponentStorageResult, FDomainResourceDialect>
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.
Sourcepub fn get_status(
&self,
) -> QueryResponseFut<StorageAdminGetStatusResult, FDomainResourceDialect>
pub fn get_status( &self, ) -> QueryResponseFut<StorageAdminGetStatusResult, FDomainResourceDialect>
Get the current status of the storage.
Sourcepub fn delete_all_storage_contents(
&self,
) -> QueryResponseFut<StorageAdminDeleteAllStorageContentsResult, FDomainResourceDialect>
pub fn delete_all_storage_contents( &self, ) -> QueryResponseFut<StorageAdminDeleteAllStorageContentsResult, FDomainResourceDialect>
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.
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: Channel) -> Self
fn from_channel(inner: Channel) -> Self
Source§fn into_channel(self) -> Result<Channel, Self>
fn into_channel(self) -> Result<Channel, Self>
Source§fn as_channel(&self) -> &Channel
fn as_channel(&self) -> &Channel
Source§impl StorageAdminProxyInterface for StorageAdminProxy
impl StorageAdminProxyInterface for StorageAdminProxy
type OpenStorageResponseFut = QueryResponseFut<Result<(), Error>, FDomainResourceDialect>
type ListStorageInRealmResponseFut = QueryResponseFut<Result<(), Error>, FDomainResourceDialect>
type OpenComponentStorageByIdResponseFut = QueryResponseFut<Result<(), Error>, FDomainResourceDialect>
type DeleteComponentStorageResponseFut = QueryResponseFut<Result<(), Error>, FDomainResourceDialect>
type GetStatusResponseFut = QueryResponseFut<Result<StorageStatus, StatusError>, FDomainResourceDialect>
type DeleteAllStorageContentsResponseFut = QueryResponseFut<Result<(), DeletionError>, FDomainResourceDialect>
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
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§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
T
to [Self
]