pub enum KeyboardRequest {
AddListener {
view_ref: ViewRef,
listener: ClientEnd<KeyboardListenerMarker>,
responder: KeyboardAddListenerResponder,
},
}
Expand description
Components may request this service from their namespace to be notified of physical key events.
Variants§
AddListener
Add a key event listener for the specified View.
If multiple listeners are added, each will receive key events independently and
should respond with a Status
.
The client calling AddListener
should keep the connection to Keyboard
alive
for as long as the events from KeyboardListener
need to be received. Dropping the
connection to the Keyboard
protocol will terminate KeyboardListener
as well.
Fields
§
view_ref: ViewRef
§
listener: ClientEnd<KeyboardListenerMarker>
§
responder: KeyboardAddListenerResponder
Implementations§
Source§impl KeyboardRequest
impl KeyboardRequest
pub fn into_add_listener( self, ) -> Option<(ViewRef, ClientEnd<KeyboardListenerMarker>, KeyboardAddListenerResponder)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL
Trait Implementations§
Auto Trait Implementations§
impl Freeze for KeyboardRequest
impl !RefUnwindSafe for KeyboardRequest
impl Send for KeyboardRequest
impl Sync for KeyboardRequest
impl Unpin for KeyboardRequest
impl !UnwindSafe for KeyboardRequest
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
Mutably borrows from an owned value. Read more