pub enum ImeServiceRequest {
GetInputMethodEditor {
keyboard_type: KeyboardType,
action: InputMethodAction,
initial_state: TextInputState,
client: ClientEnd<InputMethodEditorClientMarker>,
editor: ServerEnd<InputMethodEditorMarker>,
control_handle: ImeServiceControlHandle,
},
ShowKeyboard {
control_handle: ImeServiceControlHandle,
},
HideKeyboard {
control_handle: ImeServiceControlHandle,
},
}
Expand description
The service provided by an IME
Variants§
GetInputMethodEditor
Fields
§
keyboard_type: KeyboardType
§
action: InputMethodAction
§
initial_state: TextInputState
§
client: ClientEnd<InputMethodEditorClientMarker>
§
editor: ServerEnd<InputMethodEditorMarker>
§
control_handle: ImeServiceControlHandle
ShowKeyboard
Fields
§
control_handle: ImeServiceControlHandle
HideKeyboard
Fields
§
control_handle: ImeServiceControlHandle
Implementations§
Source§impl ImeServiceRequest
impl ImeServiceRequest
pub fn into_get_input_method_editor( self, ) -> Option<(KeyboardType, InputMethodAction, TextInputState, ClientEnd<InputMethodEditorClientMarker>, ServerEnd<InputMethodEditorMarker>, ImeServiceControlHandle)>
pub fn into_show_keyboard(self) -> Option<ImeServiceControlHandle>
pub fn into_hide_keyboard(self) -> Option<ImeServiceControlHandle>
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 ImeServiceRequest
impl !RefUnwindSafe for ImeServiceRequest
impl Send for ImeServiceRequest
impl Sync for ImeServiceRequest
impl Unpin for ImeServiceRequest
impl !UnwindSafe for ImeServiceRequest
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