pub enum Event {
InputMethod(InputMethod),
Visibility(Event),
PhysicalKeyboard(Presence),
Output(Event),
LayoutChoice(LayoutChoice),
OverlayChanged(LayoutId),
Debug(Event),
TimeoutReached(Instant),
}Expand description
Incoming events. This contains events that cause a change to the internal state.
Variants§
InputMethod(InputMethod)
Visibility(Event)
PhysicalKeyboard(Presence)
Output(Event)
LayoutChoice(LayoutChoice)
OverlayChanged(LayoutId)
Debug(Event)
TimeoutReached(Instant)
Event triggered because a moment in time passed. Use to animate state transitions. The value is the ideal arrival time.
Trait Implementations§
Source§impl Event for Event
impl Event for Event
fn new_timeout_reached(when: Instant) -> Self
Source§fn get_timeout_reached(&self) -> Option<Instant>
fn get_timeout_reached(&self) -> Option<Instant>
Returns the value of the reached timeout, if this event carries the timeout.
Source§impl From<InputMethod> for Event
impl From<InputMethod> for Event
Source§fn from(im: InputMethod) -> Self
fn from(im: InputMethod) -> Self
Converts to this type from the input type.
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