pub struct RegistrySynchronousProxy { /* private fields */ }
Implementations§
Source§impl RegistrySynchronousProxy
impl RegistrySynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<RegistryEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<RegistryEvent, 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 register_touch_screen(
&self,
payload: RegistryRegisterTouchScreenRequest,
___deadline: MonotonicInstant,
) -> Result<(), Error>
pub fn register_touch_screen( &self, payload: RegistryRegisterTouchScreenRequest, ___deadline: MonotonicInstant, ) -> Result<(), Error>
Enables the client to inject touch events using the corresponding
client end to device
.
Clients are allowed at most one in-flight call at a time. Subsequent calls must wait until the acknowledgment returns. Non-compliance results in channel closure.
The fuchsia.ui.test.input.TouchScreen
channel will remain open even
if the Registry
connection closes.
Sourcepub fn register_touch_screen_and_get_device_info(
&self,
payload: RegistryRegisterTouchScreenAndGetDeviceInfoRequest,
___deadline: MonotonicInstant,
) -> Result<RegistryRegisterTouchScreenAndGetDeviceInfoResponse, Error>
pub fn register_touch_screen_and_get_device_info( &self, payload: RegistryRegisterTouchScreenAndGetDeviceInfoRequest, ___deadline: MonotonicInstant, ) -> Result<RegistryRegisterTouchScreenAndGetDeviceInfoResponse, Error>
Enables the client to inject touch events using the corresponding
client end to device
. Returns device_id of the created device.
Clients are allowed at most one in-flight call at a time. Subsequent calls must wait until the acknowledgment returns. Non-compliance results in channel closure.
The fuchsia.ui.test.input.TouchScreen
channel will remain open even
if the Registry
connection closes.
Enables the client to inject media buttons events using the
corresponding client end to device
.
Clients are allowed at most one in-flight call at a time. Subsequent calls must wait until the acknowledgment returns. Non-compliance results in channel closure.
The fuchsia.ui.test.input.MediaButtonsDevice
channel will remain open
even if the Registry
connection closes.
Enables the client to inject media buttons events using the
corresponding client end to device
. Returns device_id of the created device.
Clients are allowed at most one in-flight call at a time. Subsequent calls must wait until the acknowledgment returns. Non-compliance results in channel closure.
The fuchsia.ui.test.input.MediaButtonsDevice
channel will remain open
even if the Registry
connection closes.
Sourcepub fn register_keyboard(
&self,
payload: RegistryRegisterKeyboardRequest,
___deadline: MonotonicInstant,
) -> Result<(), Error>
pub fn register_keyboard( &self, payload: RegistryRegisterKeyboardRequest, ___deadline: MonotonicInstant, ) -> Result<(), Error>
Enables the client to inject keyboard events using the corresponding
client end to device
.
Clients are allowed at most one in-flight call at a time. Subsequent calls must wait until the acknowledgment returns. Non-compliance results in channel closure.
The fuchsia.ui.test.input.Keyboard
channel will remain open even
if the Registry
connection closes.
Sourcepub fn register_keyboard_and_get_device_info(
&self,
payload: RegistryRegisterKeyboardAndGetDeviceInfoRequest,
___deadline: MonotonicInstant,
) -> Result<RegistryRegisterKeyboardAndGetDeviceInfoResponse, Error>
pub fn register_keyboard_and_get_device_info( &self, payload: RegistryRegisterKeyboardAndGetDeviceInfoRequest, ___deadline: MonotonicInstant, ) -> Result<RegistryRegisterKeyboardAndGetDeviceInfoResponse, Error>
Enables the client to inject keyboard events using the corresponding
client end to device
. Returns device_id of the created device.
Clients are allowed at most one in-flight call at a time. Subsequent calls must wait until the acknowledgment returns. Non-compliance results in channel closure.
The fuchsia.ui.test.input.Keyboard
channel will remain open even
if the Registry
connection closes.
Sourcepub fn register_mouse(
&self,
payload: RegistryRegisterMouseRequest,
___deadline: MonotonicInstant,
) -> Result<(), Error>
pub fn register_mouse( &self, payload: RegistryRegisterMouseRequest, ___deadline: MonotonicInstant, ) -> Result<(), Error>
Enables the client to inject mouse events using the corresponding
client end to device
.
Clients are allowed at most one in-flight call at a time. Subsequent calls must wait until the acknowledgment returns. Non-compliance results in channel closure.
The fuchsia.ui.test.input.Mouse
channel will remain open even
if the Registry
connection closes.
Sourcepub fn register_mouse_and_get_device_info(
&self,
payload: RegistryRegisterMouseAndGetDeviceInfoRequest,
___deadline: MonotonicInstant,
) -> Result<RegistryRegisterMouseAndGetDeviceInfoResponse, Error>
pub fn register_mouse_and_get_device_info( &self, payload: RegistryRegisterMouseAndGetDeviceInfoRequest, ___deadline: MonotonicInstant, ) -> Result<RegistryRegisterMouseAndGetDeviceInfoResponse, Error>
Enables the client to inject mouse events using the corresponding
client end to device
. Returns device_id of the created device.
Clients are allowed at most one in-flight call at a time. Subsequent calls must wait until the acknowledgment returns. Non-compliance results in channel closure.
The fuchsia.ui.test.input.Mouse
channel will remain open even
if the Registry
connection closes.
Trait Implementations§
Source§impl Debug for RegistrySynchronousProxy
impl Debug for RegistrySynchronousProxy
Source§impl SynchronousProxy for RegistrySynchronousProxy
impl SynchronousProxy for RegistrySynchronousProxy
Source§type Proxy = RegistryProxy
type Proxy = RegistryProxy
Source§type Protocol = RegistryMarker
type Protocol = RegistryMarker
Proxy
controls.