pub struct SessionProxy { /* private fields */ }
Implementations§
Source§impl SessionProxy
impl SessionProxy
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 configure(
&self,
payload: SessionConfigureRequest,
) -> QueryResponseFut<SessionConfigureResult, DefaultFuchsiaResourceDialect>
pub fn configure( &self, payload: SessionConfigureRequest, ) -> QueryResponseFut<SessionConfigureResult, DefaultFuchsiaResourceDialect>
Set up and prepare to profile
Sourcepub fn start(
&self,
payload: &SessionStartRequest,
) -> QueryResponseFut<SessionStartResult, DefaultFuchsiaResourceDialect>
pub fn start( &self, payload: &SessionStartRequest, ) -> QueryResponseFut<SessionStartResult, DefaultFuchsiaResourceDialect>
Begin profiling and optionally begin writing data to the configured socket
Sourcepub fn stop(
&self,
) -> QueryResponseFut<SessionStopResponse, DefaultFuchsiaResourceDialect>
pub fn stop( &self, ) -> QueryResponseFut<SessionStopResponse, DefaultFuchsiaResourceDialect>
End the profiling session and write out data to the earlier configured socket if not already writing.
Trait Implementations§
Source§impl Clone for SessionProxy
impl Clone for SessionProxy
Source§fn clone(&self) -> SessionProxy
fn clone(&self) -> SessionProxy
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
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
The protocol which this
Proxy
controls.Source§fn from_channel(inner: AsyncChannel) -> Self
fn from_channel(inner: AsyncChannel) -> Self
Create a proxy over the given channel.
Source§fn into_channel(self) -> Result<AsyncChannel, Self>
fn into_channel(self) -> Result<AsyncChannel, Self>
Attempt to convert the proxy back into a channel. Read more
Source§fn as_channel(&self) -> &AsyncChannel
fn as_channel(&self) -> &AsyncChannel
Get a reference to the proxy’s underlying channel. Read more
§fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
Attempt to convert the proxy back into a client end. Read more
Source§impl SessionProxyInterface for SessionProxy
impl SessionProxyInterface for SessionProxy
type ConfigureResponseFut = QueryResponseFut<Result<(), SessionConfigureError>>
type StartResponseFut = QueryResponseFut<Result<(), SessionStartError>>
type StopResponseFut = QueryResponseFut<SessionStopResponse>
type ResetResponseFut = QueryResponseFut<()>
fn configure( &self, payload: SessionConfigureRequest, ) -> Self::ConfigureResponseFut
fn start(&self, payload: &SessionStartRequest) -> Self::StartResponseFut
fn stop(&self) -> Self::StopResponseFut
fn reset(&self) -> Self::ResetResponseFut
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> FromClient for Twhere
T: Proxy,
impl<T> FromClient for Twhere
T: Proxy,
§fn from_client(value: ClientEnd<<T as FromClient>::Protocol>) -> T
fn from_client(value: ClientEnd<<T as FromClient>::Protocol>) -> T
Converts from a client.