Enum input::Loop [−][src]
pub enum Loop {
Render(RenderArgs),
AfterRender(AfterRenderArgs),
Update(UpdateArgs),
Idle(IdleArgs),
}Models loop events.
Variants
Render(RenderArgs)Render graphics.
AfterRender(AfterRenderArgs)After rendering and swapping buffers.
Update(UpdateArgs)Update the state of the application.
Idle(IdleArgs)Do background tasks that can be done incrementally.
Trait Implementations
impl Copy for Loop[src]
impl Copy for Loopimpl Clone for Loop[src]
impl Clone for Loopfn clone(&self) -> Loop[src]
fn clone(&self) -> LoopReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Debug for Loop[src]
impl Debug for Loopfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl PartialEq for Loop[src]
impl PartialEq for Loopfn eq(&self, other: &Loop) -> bool[src]
fn eq(&self, other: &Loop) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Loop) -> bool[src]
fn ne(&self, other: &Loop) -> boolThis method tests for !=.
impl From<RenderArgs> for Loop[src]
impl From<RenderArgs> for Loopfn from(args: RenderArgs) -> Self[src]
fn from(args: RenderArgs) -> SelfPerforms the conversion.
impl From<AfterRenderArgs> for Loop[src]
impl From<AfterRenderArgs> for Loopfn from(args: AfterRenderArgs) -> Self[src]
fn from(args: AfterRenderArgs) -> SelfPerforms the conversion.
impl From<UpdateArgs> for Loop[src]
impl From<UpdateArgs> for Loopfn from(args: UpdateArgs) -> Self[src]
fn from(args: UpdateArgs) -> SelfPerforms the conversion.
impl From<IdleArgs> for Loop[src]
impl From<IdleArgs> for Loopimpl From<Loop> for Event[src]
impl From<Loop> for Event