pub struct KeyboardSynchronousProxy { /* private fields */ }
Implementations§
source§impl KeyboardSynchronousProxy
impl KeyboardSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
sourcepub fn wait_for_event(&self, deadline: Time) -> Result<KeyboardEvent, Error>
pub fn wait_for_event(&self, deadline: Time) -> Result<KeyboardEvent, 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 set(
&self,
settings: KeyboardSettings,
___deadline: Time
) -> Result<KeyboardSetSetResult, Error>
pub fn set( &self, settings: KeyboardSettings, ___deadline: Time ) -> Result<KeyboardSetSetResult, Error>
Setting protocol: if a field is left unset, it is not modified. To clear a field, set it to its type’s “zero” value.
sourcepub fn watch(&self, ___deadline: Time) -> Result<KeyboardSettings, Error>
pub fn watch(&self, ___deadline: Time) -> Result<KeyboardSettings, Error>
The Watch protocol is the same as in the other fuchsia.settings.*
protocols.
Returns immediately on first call; on subsequent calls it blocks until the settings change, and then returns following the “hanging get” pattern.