[][src]Enum ftvf::Mode

pub enum Mode {
    TickOnly,
    MaxOneFramePerTick,
    UnlimitedFrames,
}

How ticks and frames should relate to one another in a given call to Metronome::status.

Variants

TickOnly

No rendering is happening. Metronome::status will return None when all ticks in the current batch are finished. Good for dedicated servers, logic test suites, and other headless applications.

MaxOneFramePerTick

Only render at most one frame per tick.

UnlimitedFrames

May render an unlimited number of frames between ticks. This is the preferred value, especially when the intended tickrate is substantially lower than the intended framerate. Never returns Idle.

Trait Implementations

impl Clone for Mode[src]

impl PartialEq<Mode> for Mode[src]

impl Copy for Mode[src]

impl Debug for Mode[src]

Auto Trait Implementations

impl Send for Mode

impl Unpin for Mode

impl Sync for Mode

impl UnwindSafe for Mode

impl RefUnwindSafe for Mode

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

impl<T> From<T> for 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.

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

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

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