pub enum Schedule {
Immediate,
After(u16),
}Expand description
When the event scheduler should deliver a ScheduledEvent.
Orthogonal to physical input pacing (InputEventQueue):
Schedule::Immediate— enqueue for same-turn drain (EventSchedulerpending queue →handle_pending_events).Schedule::After— wait untilKeymap::tickadvances time; not the same as Immediate even when delay is0(still waits for a tick boundary).
Prefer constructing via KeyEvents::event / KeyEvents::schedule_event
rather than building these variants by hand.
Variants§
Immediate
Same-turn: pending queue, drained before returning to the caller.
After(u16)
After the given number of tick units (ms when ms_per_tick is 1).
Trait Implementations§
Source§impl Ord for Schedule
impl Ord for Schedule
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for Schedule
impl PartialOrd for Schedule
impl Copy for Schedule
impl Eq for Schedule
impl StructuralPartialEq for Schedule
Auto Trait Implementations§
impl Freeze for Schedule
impl RefUnwindSafe for Schedule
impl Send for Schedule
impl Sync for Schedule
impl Unpin for Schedule
impl UnsafeUnpin for Schedule
impl UnwindSafe for Schedule
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