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,
payload: &StartOptions,
___deadline: MonotonicInstant,
) -> Result<SessionStartTracingResult, Error>
pub fn start_tracing( &self, payload: &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 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,
___deadline: MonotonicInstant,
) -> Result<SessionStopTracingResult, Error>
pub fn stop_tracing( &self, payload: &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.
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 Debug for SessionSynchronousProxy
impl Debug for SessionSynchronousProxy
Source§impl SynchronousProxy for SessionSynchronousProxy
impl SynchronousProxy for SessionSynchronousProxy
Source§type Proxy = SessionProxy
type Proxy = SessionProxy
Source§type Protocol = SessionMarker
type Protocol = SessionMarker
Proxy
controls.