pub struct KeyboardInputListenerSynchronousProxy { /* private fields */ }
Implementations§
Source§impl KeyboardInputListenerSynchronousProxy
impl KeyboardInputListenerSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<KeyboardInputListenerEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<KeyboardInputListenerEvent, 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_ready(&self, ___deadline: MonotonicInstant) -> Result<(), Error>
pub fn report_ready(&self, ___deadline: MonotonicInstant) -> Result<(), Error>
Notify that the client is ready to receive text input. Clients that need to complete their setup to be able to continue with testing should call this method, so that the listener can wait until they are ready to proceed with testing.
Sourcepub fn report_text_input(
&self,
payload: &KeyboardInputListenerReportTextInputRequest,
) -> Result<(), Error>
pub fn report_text_input( &self, payload: &KeyboardInputListenerReportTextInputRequest, ) -> Result<(), Error>
Notify the listener of the text string generated by the set of key events received by the application.
Trait Implementations§
Source§impl SynchronousProxy for KeyboardInputListenerSynchronousProxy
impl SynchronousProxy for KeyboardInputListenerSynchronousProxy
Source§type Proxy = KeyboardInputListenerProxy
type Proxy = KeyboardInputListenerProxy
The async proxy for the same protocol.
Source§type Protocol = KeyboardInputListenerMarker
type Protocol = KeyboardInputListenerMarker
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 KeyboardInputListenerSynchronousProxy
impl RefUnwindSafe for KeyboardInputListenerSynchronousProxy
impl Send for KeyboardInputListenerSynchronousProxy
impl Sync for KeyboardInputListenerSynchronousProxy
impl Unpin for KeyboardInputListenerSynchronousProxy
impl UnwindSafe for KeyboardInputListenerSynchronousProxy
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