pub struct ExampleProxy { /* private fields */ }
Implementations§
source§impl ExampleProxy
impl ExampleProxy
sourcepub fn take_event_stream(&self) -> ExampleEventStream
pub fn take_event_stream(&self) -> ExampleEventStream
Get a Stream of events from the remote end of the Example protocol
Panics
Panics if the event stream was already taken.
sourcepub fn get_monotonic(&self) -> QueryResponseFut<i64>
pub fn get_monotonic(&self) -> QueryResponseFut<i64>
Gets the current monotonic time.
sourcepub fn wait_until(&self, timeout: i64) -> QueryResponseFut<()>
pub fn wait_until(&self, timeout: i64) -> QueryResponseFut<()>
Wait until the given absolute time, then return.
Trait Implementations§
source§impl Clone for ExampleProxy
impl Clone for ExampleProxy
source§fn clone(&self) -> ExampleProxy
fn clone(&self) -> ExampleProxy
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 ExampleProxy
impl Debug for ExampleProxy
source§impl ExampleProxyInterface for ExampleProxy
impl ExampleProxyInterface for ExampleProxy
type GetMonotonicResponseFut = QueryResponseFut<i64>
fn get_monotonic(&self) -> Self::GetMonotonicResponseFut
type WaitUntilResponseFut = QueryResponseFut<()>
fn wait_until(&self, timeout: i64) -> Self::WaitUntilResponseFut
type WaitForResponseFut = QueryResponseFut<()>
fn wait_for(&self, duration: i64) -> Self::WaitForResponseFut
source§impl Proxy for ExampleProxy
impl Proxy for ExampleProxy
§type Protocol = ExampleMarker
type Protocol = ExampleMarker
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