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
sourceimpl Event for Event
impl Event for Event
fn new_timeout_reached(when: Instant) -> Self
sourcefn 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.
sourceimpl From<InputMethod> for Event
impl From<InputMethod> for Event
sourcefn from(im: InputMethod) -> Self
fn from(im: InputMethod) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for Event
impl Send for Event
impl !Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more