pub struct SessionSynchronousProxy { /* private fields */ }
Implementations§
source§impl SessionSynchronousProxy
impl SessionSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<SessionEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<SessionEvent, 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 start_tracing(
&self,
options: &StartOptions,
___deadline: MonotonicInstant,
) -> Result<SessionStartTracingResult, Error>
pub fn start_tracing( &self, options: &StartOptions, ___deadline: MonotonicInstant, ) -> Result<SessionStartTracingResult, 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: MonotonicInstant,
) -> Result<SessionStopTracingResult, Error>
pub fn stop_tracing( &self, options: &StopOptions, ___deadline: MonotonicInstant, ) -> Result<SessionStopTracingResult, 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 watch_alert(
&self,
___deadline: MonotonicInstant,
) -> Result<String, Error>
pub fn watch_alert( &self, ___deadline: MonotonicInstant, ) -> Result<String, Error>
Returns the next alert when it arrives.
Trait Implementations§
source§impl Debug for SessionSynchronousProxy
impl Debug for SessionSynchronousProxy
source§impl SynchronousProxy for SessionSynchronousProxy
impl SynchronousProxy for SessionSynchronousProxy
§type Proxy = SessionProxy
type Proxy = SessionProxy
§type Protocol = SessionMarker
type Protocol = SessionMarker
Proxy
controls.