Struct fidl_fuchsia_examples::EchoProxy
source · pub struct EchoProxy { /* private fields */ }
Implementations§
source§impl EchoProxy
impl EchoProxy
sourcepub fn take_event_stream(&self) -> EchoEventStream
pub fn take_event_stream(&self) -> EchoEventStream
Get a Stream of events from the remote end of the Echo protocol
Panics
Panics if the event stream was already taken.
pub fn echo_string(&self, value: &str) -> QueryResponseFut<String>
Trait Implementations§
source§impl EchoProxyInterface for EchoProxy
impl EchoProxyInterface for EchoProxy
type EchoStringResponseFut = QueryResponseFut<String>
fn echo_string(&self, value: &str) -> Self::EchoStringResponseFut
source§impl Proxy for EchoProxy
impl Proxy for EchoProxy
§type Protocol = EchoMarker
type Protocol = EchoMarker
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