Struct alacritty::scheduler::Scheduler[][src]

pub struct Scheduler {
    timers: VecDeque<Timer>,
    event_proxy: EventLoopProxy<Event>,
}
Expand description

Scheduler tracking all pending timers.

Fields

timers: VecDeque<Timer>event_proxy: EventLoopProxy<Event>

Implementations

Process all pending timers.

If there are still timers pending after all ready events have been processed, the closest pending deadline will be returned.

Schedule a new event.

Cancel a scheduled event.

Check if a timer is already scheduled.

Remove all timers scheduled for a window.

This must be called when a window is removed to ensure that timers on intervals do not stick around forever and cause a memory leak.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.