#[repr(C)]pub struct Dart_InitializeParams {Show 20 fields
pub version: i32,
pub vm_snapshot_data: *const u8,
pub vm_snapshot_instructions: *const u8,
pub create_group: Dart_IsolateGroupCreateCallback,
pub initialize_isolate: Dart_InitializeIsolateCallback,
pub shutdown_isolate: Dart_IsolateShutdownCallback,
pub cleanup_isolate: Dart_IsolateCleanupCallback,
pub cleanup_group: Dart_IsolateGroupCleanupCallback,
pub thread_start: Dart_ThreadStartCallback,
pub thread_exit: Dart_ThreadExitCallback,
pub file_open: Dart_FileOpenCallback,
pub file_read: Dart_FileReadCallback,
pub file_write: Dart_FileWriteCallback,
pub file_close: Dart_FileCloseCallback,
pub entropy_source: Dart_EntropySource,
pub get_service_assets: Dart_GetVMServiceAssetsArchive,
pub start_kernel_isolate: bool,
pub code_observer: *mut Dart_CodeObserver,
pub register_kernel_blob: Dart_RegisterKernelBlobCallback,
pub unregister_kernel_blob: Dart_UnregisterKernelBlobCallback,
}Expand description
Describes how to initialize the VM. Used with Dart_Initialize.
Fields§
§version: i32Identifies the version of the struct used by the client. should be initialized to DART_INITIALIZE_PARAMS_CURRENT_VERSION.
vm_snapshot_data: *const u8A buffer containing snapshot data, or NULL if no snapshot is provided.
If provided, the buffer must remain valid until Dart_Cleanup returns.
vm_snapshot_instructions: *const u8A buffer containing a snapshot of precompiled instructions, or NULL if no snapshot is provided.
If provided, the buffer must remain valid until Dart_Cleanup returns.
create_group: Dart_IsolateGroupCreateCallbackA function to be called during isolate group creation. See Dart_IsolateGroupCreateCallback.
initialize_isolate: Dart_InitializeIsolateCallbackA function to be called during isolate initialization inside an existing isolate group. See Dart_InitializeIsolateCallback.
shutdown_isolate: Dart_IsolateShutdownCallbackA function to be called right before an isolate is shutdown. See Dart_IsolateShutdownCallback.
cleanup_isolate: Dart_IsolateCleanupCallbackA function to be called after an isolate was shutdown. See Dart_IsolateCleanupCallback.
cleanup_group: Dart_IsolateGroupCleanupCallbackA function to be called after an isolate group is shutdown. See Dart_IsolateGroupCleanupCallback.
thread_start: Dart_ThreadStartCallback§thread_exit: Dart_ThreadExitCallback§file_open: Dart_FileOpenCallback§file_read: Dart_FileReadCallback§file_write: Dart_FileWriteCallback§file_close: Dart_FileCloseCallback§entropy_source: Dart_EntropySource§get_service_assets: Dart_GetVMServiceAssetsArchiveA function to be called by the service isolate when it requires the vmservice assets archive. See Dart_GetVMServiceAssetsArchive.
start_kernel_isolate: bool§code_observer: *mut Dart_CodeObserverAn external code observer callback function. The observer can be invoked as early as during the Dart_Initialize() call.
register_kernel_blob: Dart_RegisterKernelBlobCallbackKernel blob registration callback function. See Dart_RegisterKernelBlobCallback.
unregister_kernel_blob: Dart_UnregisterKernelBlobCallbackKernel blob unregistration callback function. See Dart_UnregisterKernelBlobCallback.
Trait Implementations§
Source§impl Clone for Dart_InitializeParams
impl Clone for Dart_InitializeParams
Source§fn clone(&self) -> Dart_InitializeParams
fn clone(&self) -> Dart_InitializeParams
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more