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 close(
&self,
___deadline: MonotonicInstant,
) -> Result<CloseableCloseResult, Error>
pub fn close( &self, ___deadline: MonotonicInstant, ) -> Result<CloseableCloseResult, Error>
Terminates the connection.
After calling Close
, the client must not send any other requests.
Servers, after sending the status response, should close the connection regardless of status and without sending an epitaph.
Closing the client end of the channel should be semantically equivalent
to calling Close
without knowing when the close has completed or its
status.
Sourcepub fn get_fifo(
&self,
___deadline: MonotonicInstant,
) -> Result<SessionGetFifoResult, Error>
pub fn get_fifo( &self, ___deadline: MonotonicInstant, ) -> Result<SessionGetFifoResult, Error>
Returns a handle to the client end of the FIFO.
Sourcepub fn attach_vmo(
&self,
vmo: Vmo,
___deadline: MonotonicInstant,
) -> Result<SessionAttachVmoResult, Error>
pub fn attach_vmo( &self, vmo: Vmo, ___deadline: MonotonicInstant, ) -> Result<SessionAttachVmoResult, Error>
Attaches a VMO to the session.
Returns an identifer that can be used to refer to the VMO.
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
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