pub enum ProviderRequest {
Get {
responder: ProviderGetResponder,
},
_UnknownMethod {
ordinal: u64,
control_handle: ProviderControlHandle,
method_type: MethodType,
},
}
Expand description
Provides memory attribution information under this principal.
The typical expected usage of this protocol is:
- Component Runners implement this protocol and declare it in their manifest.
- A Component that wants to provide extra internal information may also declare and implement this protocol;
- Clients connect to a
Provider
, and use theGet
methods to recursively explore the Principal hierarchy.
Clients will typically maintain the connection and start a hanging get to retrieve attribution information. Runners need to inspect the manifest of their runnees to determine if they serve this protocol, and proactively create the connection. They can also proxy this protocol in case their runnee provides attribution information in an unsuitable format.
Variants§
Get
Returns the attribution information known to the provider.
The first call returns immediately with the current information. Subsequent calls will be held if no additional information is available, and return only when there are changes to the attribution information to be reported.
Runners will typically report the kernel resources (e.g. job, process, etc) associated with each component that they are responsible for running.
Components may optionally report resource usage by different categories within their implementation.
Fields
responder: ProviderGetResponder
_UnknownMethod
An interaction was received which does not match any known method.
Fields
This variant is marked as non-exhaustive
control_handle: ProviderControlHandle
method_type: MethodType
Implementations§
Source§impl ProviderRequest
impl ProviderRequest
pub fn into_get(self) -> Option<ProviderGetResponder>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL