#[repr(C)]pub struct AnvilGameService {
pub size: u32,
pub ready: Option<unsafe extern "C" fn() -> c_int>,
pub main_thread_id: Option<unsafe extern "C" fn() -> u32>,
pub frame_number: Option<unsafe extern "C" fn() -> u64>,
pub run_on_main_thread: Option<unsafe extern "C" fn(work: AnvilGameWork, context: *mut c_void) -> AnvilResult>,
pub session: Option<unsafe extern "C" fn(out: *mut AnvilGameSession) -> c_int>,
pub date: Option<unsafe extern "C" fn(out: *mut AnvilGameDate) -> c_int>,
pub main_menu: Option<unsafe extern "C" fn() -> c_int>,
pub out_of_sync: Option<unsafe extern "C" fn() -> u32>,
pub keyboard: Option<unsafe extern "C" fn(flags: *mut u32) -> c_int>,
}Fields§
§size: u32§ready: Option<unsafe extern "C" fn() -> c_int>§main_thread_id: Option<unsafe extern "C" fn() -> u32>§frame_number: Option<unsafe extern "C" fn() -> u64>§run_on_main_thread: Option<unsafe extern "C" fn(work: AnvilGameWork, context: *mut c_void) -> AnvilResult>§session: Option<unsafe extern "C" fn(out: *mut AnvilGameSession) -> c_int>§date: Option<unsafe extern "C" fn(out: *mut AnvilGameDate) -> c_int>§out_of_sync: Option<unsafe extern "C" fn() -> u32>§keyboard: Option<unsafe extern "C" fn(flags: *mut u32) -> c_int>Trait Implementations§
Source§impl Clone for AnvilGameService
impl Clone for AnvilGameService
impl Copy for AnvilGameService
Auto Trait Implementations§
impl Forget for AnvilGameService
impl Freeze for AnvilGameService
impl RefUnwindSafe for AnvilGameService
impl Send for AnvilGameService
impl Sync for AnvilGameService
impl Unpin for AnvilGameService
impl UnsafeUnpin for AnvilGameService
impl UnwindSafe for AnvilGameService
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