pub struct RegistryProxy { /* private fields */ }
Implementations§
Source§impl RegistryProxy
impl RegistryProxy
Sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.ui.test.input/Registry.
Sourcepub fn take_event_stream(&self) -> RegistryEventStream
pub fn take_event_stream(&self) -> RegistryEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
Sourcepub fn register_touch_screen(
&self,
payload: RegistryRegisterTouchScreenRequest,
) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect>
pub fn register_touch_screen( &self, payload: RegistryRegisterTouchScreenRequest, ) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect>
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,
) -> QueryResponseFut<RegistryRegisterTouchScreenAndGetDeviceInfoResponse, DefaultFuchsiaResourceDialect>
pub fn register_touch_screen_and_get_device_info( &self, payload: RegistryRegisterTouchScreenAndGetDeviceInfoRequest, ) -> QueryResponseFut<RegistryRegisterTouchScreenAndGetDeviceInfoResponse, DefaultFuchsiaResourceDialect>
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,
) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect>
pub fn register_keyboard( &self, payload: RegistryRegisterKeyboardRequest, ) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect>
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,
) -> QueryResponseFut<RegistryRegisterKeyboardAndGetDeviceInfoResponse, DefaultFuchsiaResourceDialect>
pub fn register_keyboard_and_get_device_info( &self, payload: RegistryRegisterKeyboardAndGetDeviceInfoRequest, ) -> QueryResponseFut<RegistryRegisterKeyboardAndGetDeviceInfoResponse, DefaultFuchsiaResourceDialect>
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,
) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect>
pub fn register_mouse( &self, payload: RegistryRegisterMouseRequest, ) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect>
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,
) -> QueryResponseFut<RegistryRegisterMouseAndGetDeviceInfoResponse, DefaultFuchsiaResourceDialect>
pub fn register_mouse_and_get_device_info( &self, payload: RegistryRegisterMouseAndGetDeviceInfoRequest, ) -> QueryResponseFut<RegistryRegisterMouseAndGetDeviceInfoResponse, DefaultFuchsiaResourceDialect>
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 Clone for RegistryProxy
impl Clone for RegistryProxy
Source§fn clone(&self) -> RegistryProxy
fn clone(&self) -> RegistryProxy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for RegistryProxy
impl Debug for RegistryProxy
Source§impl Proxy for RegistryProxy
impl Proxy for RegistryProxy
Source§type Protocol = RegistryMarker
type Protocol = RegistryMarker
Proxy
controls.Source§fn from_channel(inner: AsyncChannel) -> Self
fn from_channel(inner: AsyncChannel) -> Self
Source§fn into_channel(self) -> Result<AsyncChannel, Self>
fn into_channel(self) -> Result<AsyncChannel, Self>
Source§fn as_channel(&self) -> &AsyncChannel
fn as_channel(&self) -> &AsyncChannel
§fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
Source§impl RegistryProxyInterface for RegistryProxy
impl RegistryProxyInterface for RegistryProxy
type RegisterTouchScreenResponseFut = QueryResponseFut<()>
type RegisterTouchScreenAndGetDeviceInfoResponseFut = QueryResponseFut<RegistryRegisterTouchScreenAndGetDeviceInfoResponse>
type RegisterMediaButtonsDeviceResponseFut = QueryResponseFut<()>
type RegisterMediaButtonsDeviceAndGetDeviceInfoResponseFut = QueryResponseFut<RegistryRegisterMediaButtonsDeviceAndGetDeviceInfoResponse>
type RegisterKeyboardResponseFut = QueryResponseFut<()>
type RegisterKeyboardAndGetDeviceInfoResponseFut = QueryResponseFut<RegistryRegisterKeyboardAndGetDeviceInfoResponse>
type RegisterMouseResponseFut = QueryResponseFut<()>
type RegisterMouseAndGetDeviceInfoResponseFut = QueryResponseFut<RegistryRegisterMouseAndGetDeviceInfoResponse>
fn register_touch_screen( &self, payload: RegistryRegisterTouchScreenRequest, ) -> Self::RegisterTouchScreenResponseFut
fn register_touch_screen_and_get_device_info( &self, payload: RegistryRegisterTouchScreenAndGetDeviceInfoRequest, ) -> Self::RegisterTouchScreenAndGetDeviceInfoResponseFut
fn register_keyboard( &self, payload: RegistryRegisterKeyboardRequest, ) -> Self::RegisterKeyboardResponseFut
fn register_keyboard_and_get_device_info( &self, payload: RegistryRegisterKeyboardAndGetDeviceInfoRequest, ) -> Self::RegisterKeyboardAndGetDeviceInfoResponseFut
fn register_mouse( &self, payload: RegistryRegisterMouseRequest, ) -> Self::RegisterMouseResponseFut
fn register_mouse_and_get_device_info( &self, payload: RegistryRegisterMouseAndGetDeviceInfoRequest, ) -> Self::RegisterMouseAndGetDeviceInfoResponseFut
Auto Trait Implementations§
impl Freeze for RegistryProxy
impl !RefUnwindSafe for RegistryProxy
impl Send for RegistryProxy
impl Sync for RegistryProxy
impl Unpin for RegistryProxy
impl !UnwindSafe for RegistryProxy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)