pub struct TestAppStatusListenerSynchronousProxy { /* private fields */ }
Implementations§
Source§impl TestAppStatusListenerSynchronousProxy
impl TestAppStatusListenerSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<TestAppStatusListenerEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<TestAppStatusListenerEvent, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
Sourcepub fn report_status(
&self,
status: TestAppStatus,
___deadline: MonotonicInstant,
) -> Result<(), Error>
pub fn report_status( &self, status: TestAppStatus, ___deadline: MonotonicInstant, ) -> Result<(), Error>
Notify that the test app is ready to receive input events.
Test app authors should call this method when they are ready to process input events.
Test suites should wait for this call before injecting input events.
Trait Implementations§
Source§impl SynchronousProxy for TestAppStatusListenerSynchronousProxy
impl SynchronousProxy for TestAppStatusListenerSynchronousProxy
Source§type Proxy = TestAppStatusListenerProxy
type Proxy = TestAppStatusListenerProxy
The async proxy for the same protocol.
Source§type Protocol = TestAppStatusListenerMarker
type Protocol = TestAppStatusListenerMarker
The protocol which this
Proxy
controls.Source§fn from_channel(inner: Channel) -> Self
fn from_channel(inner: Channel) -> Self
Create a proxy over the given channel.
Source§fn into_channel(self) -> Channel
fn into_channel(self) -> Channel
Convert the proxy back into a channel.
Source§fn as_channel(&self) -> &Channel
fn as_channel(&self) -> &Channel
Get a reference to the proxy’s underlying channel. Read more
Auto Trait Implementations§
impl Freeze for TestAppStatusListenerSynchronousProxy
impl RefUnwindSafe for TestAppStatusListenerSynchronousProxy
impl Send for TestAppStatusListenerSynchronousProxy
impl Sync for TestAppStatusListenerSynchronousProxy
impl Unpin for TestAppStatusListenerSynchronousProxy
impl UnwindSafe for TestAppStatusListenerSynchronousProxy
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