pub struct ComposedProtocolProxy { /* private fields */ }
Implementations§
source§impl ComposedProtocolProxy
impl ComposedProtocolProxy
sourcepub fn take_event_stream(&self) -> ComposedProtocolEventStream
pub fn take_event_stream(&self) -> ComposedProtocolEventStream
Get a Stream of events from the remote end of the ComposedProtocol protocol
Panics
Panics if the event stream was already taken.
pub fn one_way_composed(&self, a: i32) -> Result<(), Error>
pub fn two_way_composed(&self, a: i32) -> QueryResponseFut<i32>
pub fn two_way_composed_with_error( &self, a: i32 ) -> QueryResponseFut<ComposedProtocolTwoWayComposedWithErrorResult>
Trait Implementations§
source§impl Clone for ComposedProtocolProxy
impl Clone for ComposedProtocolProxy
source§fn clone(&self) -> ComposedProtocolProxy
fn clone(&self) -> ComposedProtocolProxy
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 ComposedProtocolProxyInterface for ComposedProtocolProxy
impl ComposedProtocolProxyInterface for ComposedProtocolProxy
fn one_way_composed(&self, a: i32) -> Result<(), Error>
type TwoWayComposedResponseFut = QueryResponseFut<i32>
fn two_way_composed(&self, a: i32) -> Self::TwoWayComposedResponseFut
type TwoWayComposedWithErrorResponseFut = QueryResponseFut<Result<i32, u32>>
fn two_way_composed_with_error( &self, a: i32 ) -> Self::TwoWayComposedWithErrorResponseFut
source§impl Debug for ComposedProtocolProxy
impl Debug for ComposedProtocolProxy
source§impl Proxy for ComposedProtocolProxy
impl Proxy for ComposedProtocolProxy
§type Protocol = ComposedProtocolMarker
type Protocol = ComposedProtocolMarker
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