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 configure(
&self,
payload: SessionConfigureRequest,
___deadline: MonotonicInstant,
) -> Result<SessionConfigureResult, Error>
pub fn configure( &self, payload: SessionConfigureRequest, ___deadline: MonotonicInstant, ) -> Result<SessionConfigureResult, Error>
Set up and prepare to profile
Sourcepub fn start(
&self,
payload: &SessionStartRequest,
___deadline: MonotonicInstant,
) -> Result<SessionStartResult, Error>
pub fn start( &self, payload: &SessionStartRequest, ___deadline: MonotonicInstant, ) -> Result<SessionStartResult, Error>
Begin profiling and optionally begin writing data to the configured socket
Sourcepub fn stop(
&self,
___deadline: MonotonicInstant,
) -> Result<SessionStopResponse, Error>
pub fn stop( &self, ___deadline: MonotonicInstant, ) -> Result<SessionStopResponse, Error>
End the profiling session and write out data to the earlier configured socket if not already writing.
Trait Implementations§
Source§impl Debug for SessionSynchronousProxy
impl Debug for SessionSynchronousProxy
Source§impl From<Channel> for SessionSynchronousProxy
impl From<Channel> for SessionSynchronousProxy
Source§impl From<SessionSynchronousProxy> for Handle
impl From<SessionSynchronousProxy> for Handle
Source§fn from(value: SessionSynchronousProxy) -> Self
fn from(value: SessionSynchronousProxy) -> Self
Converts to this type from the input type.
Source§impl FromClient for SessionSynchronousProxy
impl FromClient for SessionSynchronousProxy
Source§type Protocol = SessionMarker
type Protocol = SessionMarker
The protocol.
Source§fn from_client(value: ClientEnd<SessionMarker>) -> Self
fn from_client(value: ClientEnd<SessionMarker>) -> Self
Converts from a client.
Source§impl SynchronousProxy for SessionSynchronousProxy
impl SynchronousProxy for SessionSynchronousProxy
Source§type Proxy = SessionProxy
type Proxy = SessionProxy
The async proxy for the same protocol.
Source§type Protocol = SessionMarker
type Protocol = SessionMarker
The protocol which this
Proxy
controls.Source§fn from_channel(inner: Channel) -> Self
fn from_channel(inner: Channel) -> Self
Create a proxy over the given channel.
Source§fn into_channel(self) -> Channel
fn into_channel(self) -> Channel
Convert the proxy back into a channel.
Source§fn as_channel(&self) -> &Channel
fn as_channel(&self) -> &Channel
Get a reference to the proxy’s underlying channel. Read more
Auto Trait Implementations§
impl Freeze for SessionSynchronousProxy
impl RefUnwindSafe for SessionSynchronousProxy
impl Send for SessionSynchronousProxy
impl Sync for SessionSynchronousProxy
impl Unpin for SessionSynchronousProxy
impl UnwindSafe for SessionSynchronousProxy
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