Struct fidl_test_ping::PingProxy
source · pub struct PingProxy { /* private fields */ }
Implementations§
source§impl PingProxy
impl PingProxy
sourcepub fn take_event_stream(&self) -> PingEventStream
pub fn take_event_stream(&self) -> PingEventStream
Get a Stream of events from the remote end of the Ping protocol
Panics
Panics if the event stream was already taken.
sourcepub fn ping(&self, ping: &str) -> QueryResponseFut<String>
pub fn ping(&self, ping: &str) -> QueryResponseFut<String>
Returns a string that is the concatenation of the input ping
a space and the string “pong”.
Trait Implementations§
source§impl PingProxyInterface for PingProxy
impl PingProxyInterface for PingProxy
type PingResponseFut = QueryResponseFut<String>
fn ping(&self, ping: &str) -> Self::PingResponseFut
source§impl Proxy for PingProxy
impl Proxy for PingProxy
§type Protocol = PingMarker
type Protocol = PingMarker
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