Struct fidl_fuchsia_settings::KeyboardProxy
source · pub struct KeyboardProxy { /* private fields */ }
Implementations§
source§impl KeyboardProxy
impl KeyboardProxy
sourcepub fn take_event_stream(&self) -> KeyboardEventStream
pub fn take_event_stream(&self) -> KeyboardEventStream
Get a Stream of events from the remote end of the Keyboard protocol
Panics
Panics if the event stream was already taken.
sourcepub fn set(
&self,
settings: KeyboardSettings
) -> QueryResponseFut<KeyboardSetSetResult>
pub fn set( &self, settings: KeyboardSettings ) -> QueryResponseFut<KeyboardSetSetResult>
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) -> QueryResponseFut<KeyboardSettings>
pub fn watch(&self) -> QueryResponseFut<KeyboardSettings>
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.
Trait Implementations§
source§impl Clone for KeyboardProxy
impl Clone for KeyboardProxy
source§fn clone(&self) -> KeyboardProxy
fn clone(&self) -> KeyboardProxy
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for KeyboardProxy
impl Debug for KeyboardProxy
source§impl KeyboardProxyInterface for KeyboardProxy
impl KeyboardProxyInterface for KeyboardProxy
type SetResponseFut = QueryResponseFut<Result<(), Error>>
fn set(&self, settings: KeyboardSettings) -> Self::SetResponseFut
type WatchResponseFut = QueryResponseFut<KeyboardSettings>
fn watch(&self) -> Self::WatchResponseFut
source§impl Proxy for KeyboardProxy
impl Proxy for KeyboardProxy
§type Protocol = KeyboardMarker
type Protocol = KeyboardMarker
The protocol which this
Proxy
controls.source§fn from_channel(inner: AsyncChannel) -> Self
fn from_channel(inner: AsyncChannel) -> Self
Create a proxy over the given channel.
source§fn into_channel(self) -> Result<AsyncChannel, Self>
fn into_channel(self) -> Result<AsyncChannel, Self>
Attempt to convert the proxy back into a channel. Read more
source§fn as_channel(&self) -> &AsyncChannel
fn as_channel(&self) -> &AsyncChannel
Get a reference to the proxy’s underlying channel. Read more