pub struct SessionProxy { /* private fields */ }
Implementations§
Source§impl SessionProxy
impl SessionProxy
Sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.tracing.controller/Session.
Sourcepub fn take_event_stream(&self) -> SessionEventStream
pub fn take_event_stream(&self) -> SessionEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
Sourcepub fn start_tracing(
&self,
payload: &StartOptions,
) -> QueryResponseFut<SessionStartTracingResult, DefaultFuchsiaResourceDialect>
pub fn start_tracing( &self, payload: &StartOptions, ) -> QueryResponseFut<SessionStartTracingResult, DefaultFuchsiaResourceDialect>
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 Session 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,
payload: &StopOptions,
) -> QueryResponseFut<SessionStopTracingResult, DefaultFuchsiaResourceDialect>
pub fn stop_tracing( &self, payload: &StopOptions, ) -> QueryResponseFut<SessionStopTracingResult, DefaultFuchsiaResourceDialect>
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 watch_alert(
&self,
) -> QueryResponseFut<String, DefaultFuchsiaResourceDialect>
pub fn watch_alert( &self, ) -> QueryResponseFut<String, DefaultFuchsiaResourceDialect>
Returns the next alert when it arrives.
Alerts received by the Session are queued until a WatchAlert request is received. Alerts are sent to the caller in the order they were received.
WatchAlert requests are also queued until an alert is received and the requests are serviced in the order they were received.
Trait Implementations§
Source§impl Clone for SessionProxy
impl Clone for SessionProxy
Source§fn clone(&self) -> SessionProxy
fn clone(&self) -> SessionProxy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for SessionProxy
impl Debug for SessionProxy
Source§impl Proxy for SessionProxy
impl Proxy for SessionProxy
Source§type Protocol = SessionMarker
type Protocol = SessionMarker
Proxy
controls.