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 Clone for Loop
[src]
fn clone(&self) -> Loop
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Loop
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for Loop
[src]
fn eq(&self, __arg_0: &Loop) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Loop) -> bool
[src]
This method tests for !=
.
impl From<RenderArgs> for Loop
[src]
fn from(args: RenderArgs) -> Self
[src]
Performs the conversion.
impl From<AfterRenderArgs> for Loop
[src]
fn from(args: AfterRenderArgs) -> Self
[src]
Performs the conversion.
impl From<UpdateArgs> for Loop
[src]
fn from(args: UpdateArgs) -> Self
[src]
Performs the conversion.