pub enum RealmQueryRequest {
GetInstance {
moniker: String,
responder: RealmQueryGetInstanceResponder,
},
GetResolvedDeclaration {
moniker: String,
responder: RealmQueryGetResolvedDeclarationResponder,
},
GetManifest {
moniker: String,
responder: RealmQueryGetManifestResponder,
},
ResolveDeclaration {
parent: String,
child_location: ChildLocation,
url: String,
responder: RealmQueryResolveDeclarationResponder,
},
GetStructuredConfig {
moniker: String,
responder: RealmQueryGetStructuredConfigResponder,
},
GetAllInstances {
responder: RealmQueryGetAllInstancesResponder,
},
ConstructNamespace {
moniker: String,
responder: RealmQueryConstructNamespaceResponder,
},
Open {
moniker: String,
dir_type: OpenDirType,
flags: OpenFlags,
mode: ModeType,
path: String,
object: ServerEnd<NodeMarker>,
responder: RealmQueryOpenResponder,
},
OpenDirectory {
moniker: String,
dir_type: OpenDirType,
object: ServerEnd<DirectoryMarker>,
responder: RealmQueryOpenDirectoryResponder,
},
ConnectToStorageAdmin {
moniker: String,
storage_name: String,
server_end: ServerEnd<StorageAdminMarker>,
responder: RealmQueryConnectToStorageAdminResponder,
},
}
Expand description
Offers detailed introspection into component instances under a realm.
Variants§
GetInstance
Gets an instance identified by its moniker.
GetResolvedDeclaration
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.
GetManifest
Prefer GetResolvedDeclaration
if available for your target API level.
ResolveDeclaration
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.
GetStructuredConfig
Gets the structured config of an instance identified by its moniker.
GetAllInstances
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.
Fields
responder: RealmQueryGetAllInstancesResponder
ConstructNamespace
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
.
Open
Makes an fuchsia.io.Directory/Open call on a directory in an instance.
OpenDirectory
Opens the specified directory in an instance.
Fields
dir_type: OpenDirType
object: ServerEnd<DirectoryMarker>
responder: RealmQueryOpenDirectoryResponder
ConnectToStorageAdmin
Connects to the StorageAdmin protocol of a storage declared by an instance.
Fields
server_end: ServerEnd<StorageAdminMarker>
responder: RealmQueryConnectToStorageAdminResponder
Implementations§
Source§impl RealmQueryRequest
impl RealmQueryRequest
pub fn into_get_instance( self, ) -> Option<(String, RealmQueryGetInstanceResponder)>
pub fn into_get_resolved_declaration( self, ) -> Option<(String, RealmQueryGetResolvedDeclarationResponder)>
pub fn into_get_manifest( self, ) -> Option<(String, RealmQueryGetManifestResponder)>
pub fn into_resolve_declaration( self, ) -> Option<(String, ChildLocation, String, RealmQueryResolveDeclarationResponder)>
pub fn into_get_structured_config( self, ) -> Option<(String, RealmQueryGetStructuredConfigResponder)>
pub fn into_get_all_instances( self, ) -> Option<RealmQueryGetAllInstancesResponder>
pub fn into_construct_namespace( self, ) -> Option<(String, RealmQueryConstructNamespaceResponder)>
pub fn into_open( self, ) -> Option<(String, OpenDirType, OpenFlags, ModeType, String, ServerEnd<NodeMarker>, RealmQueryOpenResponder)>
pub fn into_open_directory( self, ) -> Option<(String, OpenDirType, ServerEnd<DirectoryMarker>, RealmQueryOpenDirectoryResponder)>
pub fn into_connect_to_storage_admin( self, ) -> Option<(String, String, ServerEnd<StorageAdminMarker>, RealmQueryConnectToStorageAdminResponder)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL