mirror of
https://github.com/rust-windowing/winit.git
synced 2026-06-26 22:53:15 -04:00
19 lines
343 B
Rust
19 lines
343 B
Rust
use web_time::Instant;
|
|
|
|
use super::backend;
|
|
|
|
#[derive(Debug)]
|
|
pub enum State {
|
|
Init,
|
|
WaitUntil { _timeout: backend::Schedule, start: Instant, end: Instant },
|
|
Wait { start: Instant },
|
|
Poll { _request: backend::Schedule },
|
|
Exit,
|
|
}
|
|
|
|
impl State {
|
|
pub fn exiting(&self) -> bool {
|
|
matches!(self, State::Exit)
|
|
}
|
|
}
|