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,
options: &StartOptions,
) -> QueryResponseFut<SessionStartTracingResult, DefaultFuchsiaResourceDialect>
pub fn start_tracing( &self, options: &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 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<SessionStopTracingResult, DefaultFuchsiaResourceDialect>
pub fn stop_tracing( &self, options: &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.
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
§type Protocol = SessionMarker
type Protocol = SessionMarker
Proxy
controls.source§fn from_channel(inner: AsyncChannel) -> Self
fn from_channel(inner: AsyncChannel) -> Self
source§fn into_channel(self) -> Result<AsyncChannel, Self>
fn into_channel(self) -> Result<AsyncChannel, Self>
source§fn as_channel(&self) -> &AsyncChannel
fn as_channel(&self) -> &AsyncChannel
§fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
source§impl SessionProxyInterface for SessionProxy
impl SessionProxyInterface for SessionProxy
type StartTracingResponseFut = QueryResponseFut<Result<(), StartErrorCode>>
fn start_tracing(&self, options: &StartOptions) -> Self::StartTracingResponseFut
type StopTracingResponseFut = QueryResponseFut<Result<TerminateResult, StopErrorCode>>
fn stop_tracing(&self, options: &StopOptions) -> Self::StopTracingResponseFut
type WatchAlertResponseFut = QueryResponseFut<String>
fn watch_alert(&self) -> Self::WatchAlertResponseFut
Auto Trait Implementations§
impl Freeze for SessionProxy
impl !RefUnwindSafe for SessionProxy
impl Send for SessionProxy
impl Sync for SessionProxy
impl Unpin for SessionProxy
impl !UnwindSafe for SessionProxy
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)