#[non_exhaustive]pub enum ImeRequest {
Enable(ImeEnableRequest),
Update(ImeRequestData),
Disable,
}Expand description
Request to send to IME.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Enable(ImeEnableRequest)
Enable the IME with the ImeCapabilities and ImeRequestData as initial state. When
the ImeRequestData is not matching capabilities fully, the default values will be
used instead.
Requesting to update data matching not enabled capabilities will result in update
being ignored. The wingy backend in such cases is recommended to log a warning. This
applies to both ImeRequest::Enable and ImeRequest::Update. For details on
capabilities refer to ImeCapabilities.
To update the ImeCapabilities, the IME must be disabled and then re-enabled.
Update(ImeRequestData)
Update the state of already enabled IME. Issuing this request before ImeRequest::Enable
will result in error.
Disable
Disable the IME.
The disable request can not fail.
Trait Implementations§
Source§impl Clone for ImeRequest
impl Clone for ImeRequest
Source§impl Debug for ImeRequest
impl Debug for ImeRequest
Source§impl PartialEq for ImeRequest
impl PartialEq for ImeRequest
impl StructuralPartialEq for ImeRequest
Auto Trait Implementations§
impl Freeze for ImeRequest
impl RefUnwindSafe for ImeRequest
impl Send for ImeRequest
impl Sync for ImeRequest
impl Unpin for ImeRequest
impl UnsafeUnpin for ImeRequest
impl UnwindSafe for ImeRequest
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