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<Loop, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Loop, <__D as Deserializer<'de>>::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) -> Loop
fn from(args: AfterRenderArgs) -> Loop
Converts to this type from the input type.
source§impl From<RenderArgs> for Loop
impl From<RenderArgs> for Loop
source§fn from(args: RenderArgs) -> Loop
fn from(args: RenderArgs) -> Loop
Converts to this type from the input type.
source§impl From<UpdateArgs> for Loop
impl From<UpdateArgs> for Loop
source§fn from(args: UpdateArgs) -> Loop
fn from(args: UpdateArgs) -> Loop
Converts to this type from the input type.
source§impl PartialEq for Loop
impl PartialEq for Loop
source§impl PartialOrd for Loop
impl PartialOrd for Loop
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for Loop
impl Serialize for Loop
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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