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 to initialize a trace Session, that can then be started and stopped.
The provisioner is required to start a trace 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.
Dropping the socket connection will abort and terminate the existing trace Session.
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.
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