pub enum KeyPressResult {
Handled,
Stop,
Continue,
}
Expand description
Returned by CustomInputHandler’s handle_key_press to signal how the key event should be handled.
Variants§
Handled
Tells the input that this event has been handled, and shouldn’t be further processed.
Stop
Tells the input to stop, like it is finished / submitted.
Continue
Continue handling event as normal.
Auto Trait Implementations§
impl Freeze for KeyPressResult
impl RefUnwindSafe for KeyPressResult
impl Send for KeyPressResult
impl Sync for KeyPressResult
impl Unpin for KeyPressResult
impl UnwindSafe for KeyPressResult
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