Struct v8_sys::v8_PlatformFunctions
[−]
[src]
#[repr(C)]pub struct v8_PlatformFunctions { pub Destroy: Option<unsafe extern fn()>, pub NumberOfAvailableBackgroundThreads: Option<unsafe extern fn() -> c_ulong>, pub CallOnBackgroundThread: Option<unsafe extern fn(task: TaskPtr, expected_runtime: v8_ExpectedRuntime)>, pub CallOnForegroundThread: Option<unsafe extern fn(isolate: IsolatePtr, task: TaskPtr)>, pub CallDelayedOnForegroundThread: Option<unsafe extern fn(isolate: IsolatePtr, task: TaskPtr, delay_in_seconds: f64)>, pub CallIdleOnForegroundThread: Option<unsafe extern fn(isolate: IsolatePtr, task: IdleTaskPtr)>, pub IdleTasksEnabled: Option<unsafe extern fn(isolate: IsolatePtr) -> bool>, pub MonotonicallyIncreasingTime: Option<unsafe extern fn() -> f64>, }
Fields
Destroy: Option<unsafe extern fn()>
NumberOfAvailableBackgroundThreads: Option<unsafe extern fn() -> c_ulong>
CallOnBackgroundThread: Option<unsafe extern fn(task: TaskPtr, expected_runtime: v8_ExpectedRuntime)>
CallOnForegroundThread: Option<unsafe extern fn(isolate: IsolatePtr, task: TaskPtr)>
CallDelayedOnForegroundThread: Option<unsafe extern fn(isolate: IsolatePtr, task: TaskPtr, delay_in_seconds: f64)>
CallIdleOnForegroundThread: Option<unsafe extern fn(isolate: IsolatePtr, task: IdleTaskPtr)>
IdleTasksEnabled: Option<unsafe extern fn(isolate: IsolatePtr) -> bool>
MonotonicallyIncreasingTime: Option<unsafe extern fn() -> f64>
Trait Implementations
impl Debug for v8_PlatformFunctions
[src]
impl Copy for v8_PlatformFunctions
[src]
impl Clone for v8_PlatformFunctions
[src]
fn clone(&self) -> Self
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more