#[non_exhaustive]pub enum Event {
Activate(ZwpInputMethodContextV1),
Deactivate(ObjectId),
}Available on crate feature
input-method-unstable-v1 only.Expand description
The event enum for ZwpInputMethodV1
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.
Activate(ZwpInputMethodContextV1)
activate event
A text input was activated. Creates an input method context object which allows communication with the text input.
Since version 1.
Tuple Fields
Deactivate(ObjectId)
deactivate event
The text input corresponding to the context argument was deactivated. The input method context should be destroyed after deactivation is handled.
Since version 1.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
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