pub enum LoopEvent {
Sleep {
until: Option<u64>,
},
Woke {
by: NameId,
},
Os {
kind: NameId,
},
}Expand description
What the driver’s loop did.
Variants§
Sleep
Went to sleep, until a time when there was one.
Woke
Woke, and why (input, wake, timer, redraw, …).
Os
Handled an OS event that never became input.
Trait Implementations§
impl Copy for LoopEvent
impl StructuralPartialEq for LoopEvent
Auto Trait Implementations§
impl Forget for LoopEvent
impl Freeze for LoopEvent
impl RefUnwindSafe for LoopEvent
impl Send for LoopEvent
impl Sync for LoopEvent
impl Unpin for LoopEvent
impl UnsafeUnpin for LoopEvent
impl UnwindSafe for LoopEvent
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