pub struct KeyboardWatchSynchronousProxy { /* private fields */ }
Implementations§
source§impl KeyboardWatchSynchronousProxy
impl KeyboardWatchSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
sourcepub fn wait_for_event(&self, deadline: Time) -> Result<KeyboardWatchEvent, Error>
pub fn wait_for_event(&self, deadline: Time) -> Result<KeyboardWatchEvent, 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 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.