pub enum Loop {
Render(RenderArgs),
AfterRender(AfterRenderArgs),
Update(UpdateArgs),
Idle(IdleArgs),
}
Expand description
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§
Source§impl<'de> Deserialize<'de> for Loop
impl<'de> Deserialize<'de> for Loop
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<AfterRenderArgs> for Loop
impl From<AfterRenderArgs> for Loop
Source§fn from(args: AfterRenderArgs) -> Self
fn from(args: AfterRenderArgs) -> Self
Converts to this type from the input type.
Source§impl From<RenderArgs> for Loop
impl From<RenderArgs> for Loop
Source§fn from(args: RenderArgs) -> Self
fn from(args: RenderArgs) -> Self
Converts to this type from the input type.
Source§impl From<UpdateArgs> for Loop
impl From<UpdateArgs> for Loop
Source§fn from(args: UpdateArgs) -> Self
fn from(args: UpdateArgs) -> Self
Converts to this type from the input type.
Source§impl PartialOrd for Loop
impl PartialOrd for Loop
impl Copy for Loop
impl StructuralPartialEq for Loop
Auto Trait Implementations§
impl Freeze for Loop
impl RefUnwindSafe for Loop
impl Send for Loop
impl Sync for Loop
impl Unpin for Loop
impl UnwindSafe for Loop
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more