pub enum ControllerRequest {
Notify {
view_ref: ViewRef,
responder: ControllerNotifyResponder,
},
}
Expand description
Updates the focus of the keyboard subsystem.
§Roles
This protocol will typically be:
- Implemented by platform components implementing the keyboard subsystem.
- Consumed by platform components which control UI policy. E.g. Root Presenter, or the Workstation Session.
§Related protocols
fuchsia.ui.input3.Keyboard
(for receiving keystrokes)fuchsia.ui.input.InputMethodEditor
(for text editing)
Variants§
Notify
Informs the implementer of Controller
that further keyboard
data should be routed to the keystroke/text consumer
associated with view_ref
.
§Notes
- The callee should monitor the provided
ViewRef
for aZX_EVENTPAIR_PEER_CLOSED
signal (see documentation forfuchsia.ui.views.ViewRefControl
). - When the
ViewRef
receivesZX_EVENTPAIR_PEER_CLOSED
, the callee should stop delivering keystroke/text to the consumer associated withview_ref
. - The caller should wait for each call to be acknowledged before calling again, to avoid queueing large numbers of of updates.
Implementations§
Source§impl ControllerRequest
impl ControllerRequest
pub fn into_notify(self) -> Option<(ViewRef, ControllerNotifyResponder)>
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 ControllerRequest
impl !RefUnwindSafe for ControllerRequest
impl Send for ControllerRequest
impl Sync for ControllerRequest
impl Unpin for ControllerRequest
impl !UnwindSafe for ControllerRequest
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