Struct sixtyfps_corelib::timers::TimerList[][src]

pub struct TimerList { /* fields omitted */ }

TimerList provides the interface to the event loop for activating times and determining the nearest timeout.

Implementations

impl TimerList[src]

pub fn next_timeout() -> Option<Instant>[src]

Returns the timeout of the timer that should fire the soonest, or None if there is no timer active.

pub fn maybe_activate_timers() -> bool[src]

Activates any expired timers by calling their callback function. Returns true if any timers were activated; false otherwise.

Trait Implementations

impl Default for TimerList[src]

Auto Trait Implementations

impl !RefUnwindSafe for TimerList

impl !Send for TimerList

impl !Sync for TimerList

impl Unpin for TimerList

impl !UnwindSafe for TimerList

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.