pub struct CloseableSynchronousProxy { /* private fields */ }
Implementations§
Source§impl CloseableSynchronousProxy
impl CloseableSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<CloseableEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<CloseableEvent, 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.
Trait Implementations§
Source§impl Debug for CloseableSynchronousProxy
impl Debug for CloseableSynchronousProxy
Source§impl SynchronousProxy for CloseableSynchronousProxy
impl SynchronousProxy for CloseableSynchronousProxy
Source§type Proxy = CloseableProxy
type Proxy = CloseableProxy
The async proxy for the same protocol.
Source§type Protocol = CloseableMarker
type Protocol = CloseableMarker
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 CloseableSynchronousProxy
impl RefUnwindSafe for CloseableSynchronousProxy
impl Send for CloseableSynchronousProxy
impl Sync for CloseableSynchronousProxy
impl Unpin for CloseableSynchronousProxy
impl UnwindSafe for CloseableSynchronousProxy
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