Struct fidl_test_fidl_connector::TestProxy
source · pub struct TestProxy { /* private fields */ }
Implementations§
source§impl TestProxy
impl TestProxy
sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for test.fidl.connector/Test.
sourcepub fn take_event_stream(&self) -> TestEventStream
pub fn take_event_stream(&self) -> TestEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
pub fn ping(&self) -> QueryResponseFut<u32>
pub fn disconnect(&self) -> QueryResponseFut<()>
Trait Implementations§
source§impl Proxy for TestProxy
impl Proxy for TestProxy
§type Protocol = TestMarker
type Protocol = TestMarker
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
source§impl TestProxyInterface for TestProxy
impl TestProxyInterface for TestProxy
type PingResponseFut = QueryResponseFut<u32>
fn ping(&self) -> Self::PingResponseFut
type DisconnectResponseFut = QueryResponseFut<()>
fn disconnect(&self) -> Self::DisconnectResponseFut
Auto Trait Implementations§
impl !RefUnwindSafe for TestProxy
impl Send for TestProxy
impl Sync for TestProxy
impl Unpin for TestProxy
impl !UnwindSafe for TestProxy
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more