pub struct ControllerProxy { /* private fields */ }
Implementations§
source§impl ControllerProxy
impl ControllerProxy
sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.tracing.controller/Controller.
sourcepub fn take_event_stream(&self) -> ControllerEventStream
pub fn take_event_stream(&self) -> ControllerEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
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
) -> QueryResponseFut<TerminateResult>
pub fn terminate_tracing( &self, options: &TerminateOptions ) -> QueryResponseFut<TerminateResult>
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
) -> QueryResponseFut<ControllerStartTracingResult>
pub fn start_tracing( &self, options: &StartOptions ) -> QueryResponseFut<ControllerStartTracingResult>
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) -> QueryResponseFut<()>
pub fn stop_tracing(&self, options: &StopOptions) -> QueryResponseFut<()>
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) -> QueryResponseFut<Vec<ProviderInfo>>
pub fn get_providers(&self) -> QueryResponseFut<Vec<ProviderInfo>>
Return the set of registered providers.
pub fn get_known_categories(&self) -> QueryResponseFut<Vec<KnownCategory>>
sourcepub fn watch_alert(&self) -> QueryResponseFut<String>
pub fn watch_alert(&self) -> QueryResponseFut<String>
Returns the next alert when it arrives.
Trait Implementations§
source§impl Clone for ControllerProxy
impl Clone for ControllerProxy
source§fn clone(&self) -> ControllerProxy
fn clone(&self) -> ControllerProxy
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl ControllerProxyInterface for ControllerProxy
impl ControllerProxyInterface for ControllerProxy
fn initialize_tracing( &self, config: &TraceConfig, output: Socket ) -> Result<(), Error>
type TerminateTracingResponseFut = QueryResponseFut<TerminateResult>
fn terminate_tracing( &self, options: &TerminateOptions ) -> Self::TerminateTracingResponseFut
type StartTracingResponseFut = QueryResponseFut<Result<(), StartErrorCode>>
fn start_tracing(&self, options: &StartOptions) -> Self::StartTracingResponseFut
type StopTracingResponseFut = QueryResponseFut<()>
fn stop_tracing(&self, options: &StopOptions) -> Self::StopTracingResponseFut
type GetProvidersResponseFut = QueryResponseFut<Vec<ProviderInfo>>
fn get_providers(&self) -> Self::GetProvidersResponseFut
type GetKnownCategoriesResponseFut = QueryResponseFut<Vec<KnownCategory>>
fn get_known_categories(&self) -> Self::GetKnownCategoriesResponseFut
type WatchAlertResponseFut = QueryResponseFut<String>
fn watch_alert(&self) -> Self::WatchAlertResponseFut
source§impl Debug for ControllerProxy
impl Debug for ControllerProxy
source§impl Proxy for ControllerProxy
impl Proxy for ControllerProxy
§type Protocol = ControllerMarker
type Protocol = ControllerMarker
Proxy
controls.