pub struct ProtocolProxy { /* private fields */ }
Implementations§
source§impl ProtocolProxy
impl ProtocolProxy
sourcepub fn take_event_stream(&self) -> ProtocolEventStream
pub fn take_event_stream(&self) -> ProtocolEventStream
Get a Stream of events from the remote end of the Protocol protocol
Panics
Panics if the event stream was already taken.
pub fn request_strict_response_flexible( &self, s: &mut StrictFoo ) -> QueryResponseFut<FlexibleFoo>
pub fn request_flexible_response_strict( &self, s: &mut FlexibleFoo ) -> QueryResponseFut<StrictFoo>
Trait Implementations§
source§impl Clone for ProtocolProxy
impl Clone for ProtocolProxy
source§fn clone(&self) -> ProtocolProxy
fn clone(&self) -> ProtocolProxy
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 ProtocolProxy
impl Debug for ProtocolProxy
source§impl ProtocolProxyInterface for ProtocolProxy
impl ProtocolProxyInterface for ProtocolProxy
type RequestStrictResponseFlexibleResponseFut = QueryResponseFut<FlexibleFoo>
fn request_strict_response_flexible( &self, s: &mut StrictFoo ) -> Self::RequestStrictResponseFlexibleResponseFut
type RequestFlexibleResponseStrictResponseFut = QueryResponseFut<StrictFoo>
fn request_flexible_response_strict( &self, s: &mut FlexibleFoo ) -> Self::RequestFlexibleResponseStrictResponseFut
source§impl Proxy for ProtocolProxy
impl Proxy for ProtocolProxy
§type Protocol = ProtocolMarker
type Protocol = ProtocolMarker
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