Struct fidl_fuchsia_sys2::RealmQueryProxy
source · pub struct RealmQueryProxy { /* private fields */ }
Implementations§
source§impl RealmQueryProxy
impl RealmQueryProxy
sourcepub fn take_event_stream(&self) -> RealmQueryEventStream
pub fn take_event_stream(&self) -> RealmQueryEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
sourcepub fn get_instance(
&self,
moniker: &str,
) -> QueryResponseFut<RealmQueryGetInstanceResult>
pub fn get_instance( &self, moniker: &str, ) -> QueryResponseFut<RealmQueryGetInstanceResult>
Gets an instance identified by its moniker.
sourcepub fn get_resolved_declaration(
&self,
moniker: &str,
) -> QueryResponseFut<RealmQueryGetResolvedDeclarationResult>
pub fn get_resolved_declaration( &self, moniker: &str, ) -> QueryResponseFut<RealmQueryGetResolvedDeclarationResult>
Gets the manifest of an instance identified by its moniker.
The manifest is encoded in its standalone persistable format per RFC-0120 and is sent across using an iterator. Some manifests are too large to send over a Zircon channel and we can’t use a VMO because we need an approach that is compatible with overnet.
sourcepub fn get_manifest(
&self,
moniker: &str,
) -> QueryResponseFut<RealmQueryGetManifestResult>
pub fn get_manifest( &self, moniker: &str, ) -> QueryResponseFut<RealmQueryGetManifestResult>
Prefer GetResolvedDeclaration
if available for your target API level.
sourcepub fn resolve_declaration(
&self,
parent: &str,
child_location: &ChildLocation,
url: &str,
) -> QueryResponseFut<RealmQueryResolveDeclarationResult>
pub fn resolve_declaration( &self, parent: &str, child_location: &ChildLocation, url: &str, ) -> QueryResponseFut<RealmQueryResolveDeclarationResult>
Gets the manifest of a component URL as if it were a child of the specified parent without actually creating or starting that component.
The manifest is encoded in its standalone persistable format per RFC-0120 and is sent across using an iterator. Some manifests are too large to send over a Zircon channel and we can’t use a VMO because we need an approach that is compatible with overnet.
sourcepub fn get_structured_config(
&self,
moniker: &str,
) -> QueryResponseFut<RealmQueryGetStructuredConfigResult>
pub fn get_structured_config( &self, moniker: &str, ) -> QueryResponseFut<RealmQueryGetStructuredConfigResult>
Gets the structured config of an instance identified by its moniker.
sourcepub fn get_all_instances(
&self,
) -> QueryResponseFut<RealmQueryGetAllInstancesResult>
pub fn get_all_instances( &self, ) -> QueryResponseFut<RealmQueryGetAllInstancesResult>
Returns an iterator over all component instances in this realm and instances within resolved children, recursively. Unresolved child components will be included in this list, but children of unresolved children will not be.
sourcepub fn construct_namespace(
&self,
moniker: &str,
) -> QueryResponseFut<RealmQueryConstructNamespaceResult>
pub fn construct_namespace( &self, moniker: &str, ) -> QueryResponseFut<RealmQueryConstructNamespaceResult>
Constructs the namespace of an instance as determined by its use declarations.
This is usually identical to what would be given to the component’s runner on
component start time, unless extended by
fuchsia.component/StartChildArgs.namespace_entries
.
sourcepub fn open(
&self,
moniker: &str,
dir_type: OpenDirType,
flags: OpenFlags,
mode: ModeType,
path: &str,
object: ServerEnd<NodeMarker>,
) -> QueryResponseFut<RealmQueryOpenResult>
pub fn open( &self, moniker: &str, dir_type: OpenDirType, flags: OpenFlags, mode: ModeType, path: &str, object: ServerEnd<NodeMarker>, ) -> QueryResponseFut<RealmQueryOpenResult>
Makes an fuchsia.io.Directory/Open call on a directory in an instance.
sourcepub fn connect_to_storage_admin(
&self,
moniker: &str,
storage_name: &str,
server_end: ServerEnd<StorageAdminMarker>,
) -> QueryResponseFut<RealmQueryConnectToStorageAdminResult>
pub fn connect_to_storage_admin( &self, moniker: &str, storage_name: &str, server_end: ServerEnd<StorageAdminMarker>, ) -> QueryResponseFut<RealmQueryConnectToStorageAdminResult>
Connects to the StorageAdmin protocol of a storage declared by an instance.
Trait Implementations§
source§impl Clone for RealmQueryProxy
impl Clone for RealmQueryProxy
source§fn clone(&self) -> RealmQueryProxy
fn clone(&self) -> RealmQueryProxy
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RealmQueryProxy
impl Debug for RealmQueryProxy
source§impl Proxy for RealmQueryProxy
impl Proxy for RealmQueryProxy
§type Protocol = RealmQueryMarker
type Protocol = RealmQueryMarker
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 RealmQueryProxyInterface for RealmQueryProxy
impl RealmQueryProxyInterface for RealmQueryProxy
type GetInstanceResponseFut = QueryResponseFut<Result<Instance, GetInstanceError>>
fn get_instance(&self, moniker: &str) -> Self::GetInstanceResponseFut
type GetResolvedDeclarationResponseFut = QueryResponseFut<Result<ClientEnd<ManifestBytesIteratorMarker>, GetDeclarationError>>
fn get_resolved_declaration( &self, moniker: &str, ) -> Self::GetResolvedDeclarationResponseFut
type GetManifestResponseFut = QueryResponseFut<Result<ClientEnd<ManifestBytesIteratorMarker>, GetDeclarationError>>
fn get_manifest(&self, moniker: &str) -> Self::GetManifestResponseFut
type ResolveDeclarationResponseFut = QueryResponseFut<Result<ClientEnd<ManifestBytesIteratorMarker>, GetDeclarationError>>
fn resolve_declaration( &self, parent: &str, child_location: &ChildLocation, url: &str, ) -> Self::ResolveDeclarationResponseFut
type GetStructuredConfigResponseFut = QueryResponseFut<Result<ResolvedConfig, GetStructuredConfigError>>
fn get_structured_config( &self, moniker: &str, ) -> Self::GetStructuredConfigResponseFut
type GetAllInstancesResponseFut = QueryResponseFut<Result<ClientEnd<InstanceIteratorMarker>, GetAllInstancesError>>
fn get_all_instances(&self) -> Self::GetAllInstancesResponseFut
type ConstructNamespaceResponseFut = QueryResponseFut<Result<Vec<ComponentNamespaceEntry>, ConstructNamespaceError>>
fn construct_namespace( &self, moniker: &str, ) -> Self::ConstructNamespaceResponseFut
type OpenResponseFut = QueryResponseFut<Result<(), OpenError>>
fn open( &self, moniker: &str, dir_type: OpenDirType, flags: OpenFlags, mode: ModeType, path: &str, object: ServerEnd<NodeMarker>, ) -> Self::OpenResponseFut
type ConnectToStorageAdminResponseFut = QueryResponseFut<Result<(), ConnectToStorageAdminError>>
fn connect_to_storage_admin( &self, moniker: &str, storage_name: &str, server_end: ServerEnd<StorageAdminMarker>, ) -> Self::ConnectToStorageAdminResponseFut
Auto Trait Implementations§
impl Freeze for RealmQueryProxy
impl !RefUnwindSafe for RealmQueryProxy
impl Send for RealmQueryProxy
impl Sync for RealmQueryProxy
impl Unpin for RealmQueryProxy
impl !UnwindSafe for RealmQueryProxy
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)