pub enum IntrospectorRequest {
GetMoniker {
component_instance: Event,
responder: IntrospectorGetMonikerResponder,
},
_UnknownMethod {
ordinal: u64,
control_handle: IntrospectorControlHandle,
method_type: MethodType,
},
}
Expand description
A protocol used by a component instance to obtain information about components in its own realm.
This protocol only supports getting the moniker at the moment but could expand to other privileged information such as the URL of a component.
The component framework provides this capability to components that use
fuchsia.component.Introspector
from framework.
Variants§
GetMoniker
Obtains the moniker relative to this realm of the component
corresponding to the provided token. Runners may obtain the token via
fuchsia.component.runner/ComponentStartInfo.component_instance
.
Returns Error.INSTANCE_NOT_FOUND
if the token is invalid, or
does not correspond to a component under this realm.
_UnknownMethod
An interaction was received which does not match any known method.
Fields
This variant is marked as non-exhaustive
control_handle: IntrospectorControlHandle
method_type: MethodType
Implementations§
Source§impl IntrospectorRequest
impl IntrospectorRequest
pub fn into_get_moniker( self, ) -> Option<(Event, IntrospectorGetMonikerResponder)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL