pub struct ControllerSynchronousProxy { /* private fields */ }
Implementations§
source§impl ControllerSynchronousProxy
impl ControllerSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
sourcepub fn wait_for_event(&self, deadline: Time) -> Result<ControllerEvent, Error>
pub fn wait_for_event(&self, deadline: Time) -> Result<ControllerEvent, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
sourcepub fn initialize_tracing(
&self,
config: &TraceConfig,
output: Socket
) -> Result<(), Error>
pub fn initialize_tracing( &self, config: &TraceConfig, output: Socket ) -> Result<(), Error>
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.
sourcepub fn terminate_tracing(
&self,
options: &TerminateOptions,
___deadline: Time
) -> Result<TerminateResult, Error>
pub fn terminate_tracing( &self, options: &TerminateOptions, ___deadline: Time ) -> Result<TerminateResult, Error>
Requests to terminate tracing.
If tracing has not yet stopped it is stopped first.
If options.write_results
is true, then the trace controller
continues to transfer any remaining data to the output socket
until finished, then closes the output.
sourcepub fn start_tracing(
&self,
options: &StartOptions,
___deadline: Time
) -> Result<ControllerStartTracingResult, Error>
pub fn start_tracing( &self, options: &StartOptions, ___deadline: Time ) -> Result<ControllerStartTracingResult, Error>
Requests to start tracing with the specified options
.
If tracing has already started then the request is ignored, except to send back an error code.
The trace controller acknowledges the request when all
registered providers have been started or after
TraceConfig.start_timeout_milliseconds
milliseconds.
One useful reason for the has-started acknowledgement is that the
trace program can start a program to trace knowing that all the
providers are started.
sourcepub fn stop_tracing(
&self,
options: &StopOptions,
___deadline: Time
) -> Result<(), Error>
pub fn stop_tracing( &self, options: &StopOptions, ___deadline: Time ) -> Result<(), Error>
Requests to stop tracing.
If tracing has already stopped then this does nothing. Returning a result lets callers know when it’s ok to, for example, start tracing again.
sourcepub fn get_providers(
&self,
___deadline: Time
) -> Result<Vec<ProviderInfo>, Error>
pub fn get_providers( &self, ___deadline: Time ) -> Result<Vec<ProviderInfo>, Error>
Return the set of registered providers.
pub fn get_known_categories( &self, ___deadline: Time ) -> Result<Vec<KnownCategory>, Error>
sourcepub fn watch_alert(&self, ___deadline: Time) -> Result<String, Error>
pub fn watch_alert(&self, ___deadline: Time) -> Result<String, Error>
Returns the next alert when it arrives.
Trait Implementations§
source§impl Debug for ControllerSynchronousProxy
impl Debug for ControllerSynchronousProxy
source§impl SynchronousProxy for ControllerSynchronousProxy
impl SynchronousProxy for ControllerSynchronousProxy
§type Proxy = ControllerProxy
type Proxy = ControllerProxy
§type Protocol = ControllerMarker
type Protocol = ControllerMarker
Proxy
controls.