pub enum ProvisionerRequest {
InitializeTracing {
controller: ServerEnd<SessionMarker>,
config: TraceConfig,
output: Socket,
control_handle: ProvisionerControlHandle,
},
GetProviders {
responder: ProvisionerGetProvidersResponder,
},
GetKnownCategories {
responder: ProvisionerGetKnownCategoriesResponder,
},
_UnknownMethod {
ordinal: u64,
control_handle: ProvisionerControlHandle,
method_type: MethodType,
},
}
Expand description
The provisioner interface used by the trace tool to initialize tracing
The provisioner is required to start a tracing session and bind the control to the client. It can also perform tasks like getting the list of registered providers and known categories, which can be performed without a existing trace session.
Variants§
InitializeTracing
Requests to initialize tracing with the specified config
.
A bad request will terminate the connection.
The trace controller emits trace data to output
as a sequence of
binary formatted trace records. Traces obtained from different providers
are delimited by metadata records within the stream.
The format of these records can be found here:
https://fuchsia.dev/fuchsia-src/reference/tracing/trace-format
Fields
controller: ServerEnd<SessionMarker>
config: TraceConfig
output: Socket
control_handle: ProvisionerControlHandle
GetProviders
Return the set of registered providers.
Fields
responder: ProvisionerGetProvidersResponder
GetKnownCategories
Fields
responder: ProvisionerGetKnownCategoriesResponder
_UnknownMethod
An interaction was received which does not match any known method.
Fields
This variant is marked as non-exhaustive
control_handle: ProvisionerControlHandle
method_type: MethodType
Implementations§
source§impl ProvisionerRequest
impl ProvisionerRequest
pub fn into_initialize_tracing( self, ) -> Option<(ServerEnd<SessionMarker>, TraceConfig, Socket, ProvisionerControlHandle)>
pub fn into_get_providers(self) -> Option<ProvisionerGetProvidersResponder>
pub fn into_get_known_categories( self, ) -> Option<ProvisionerGetKnownCategoriesResponder>
sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL