()
| 17 | } |
| 18 | |
| 19 | pub fn poll_one() -> Result<Option<SteamEvent>, SteamError> { |
| 20 | let _ = crate::app::run_callbacks(); |
| 21 | queue() |
| 22 | .lock() |
| 23 | .map(|mut queue| queue.pop_front()) |
| 24 | .map_err(|_| SteamError::NotReady) |
| 25 | } |
| 26 | |
| 27 | pub fn drain() -> Result<Vec<SteamEvent>, SteamError> { |
| 28 | let _ = crate::app::run_callbacks(); |
nothing calls this directly
no test coverage detected