#[repr(C)]pub struct LoopWaitData {
pub header: Header,
pub ms: u32,
pub reserved: u32,
pub left_ns: i64,
}Expand description
A wait of the engine’s event loop on its handles, about to happen, as
HostApi::loop_wait hands it on.
§Examples
use enshwick::abi::{Header, LoopWaitData};
let wait = LoopWaitData { header: Header::of::<LoopWaitData>(), ms: 0, reserved: 0, left_ns: 400_000 };
assert!(wait.ms == 0 && wait.left_ns > 0);Fields§
§header: HeaderSize and version of this struct.
ms: u32What the game is about to wait, in milliseconds: the time left, truncated.
reserved: u32Zero.
left_ns: i64The time left before the loop’s deadline, in nanoseconds.
Trait Implementations§
Source§impl Clone for LoopWaitData
impl Clone for LoopWaitData
impl Copy for LoopWaitData
Source§impl Debug for LoopWaitData
impl Debug for LoopWaitData
impl Headed for LoopWaitData
Auto Trait Implementations§
impl Freeze for LoopWaitData
impl RefUnwindSafe for LoopWaitData
impl Send for LoopWaitData
impl Sync for LoopWaitData
impl Unpin for LoopWaitData
impl UnsafeUnpin for LoopWaitData
impl UnwindSafe for LoopWaitData
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