[][src]Struct dart_sys::Dart_InitializeParams

#[repr(C)]pub struct Dart_InitializeParams {
    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_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,
}

Describes how to initialize the VM. Used with Dart_Initialize.

\param version Identifies the version of the struct used by the client. should be initialized to DART_INITIALIZE_PARAMS_CURRENT_VERSION. \param vm_isolate_snapshot A buffer containing a snapshot of the VM isolate or NULL if no snapshot is provided. If provided, the buffer must remain valid until Dart_Cleanup returns. \param instructions_snapshot A 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. \param initialize_isolate A function to be called during isolate initialization inside an existing isolate group. See Dart_InitializeIsolateCallback. \param create_group A function to be called during isolate group creation. See Dart_IsolateGroupCreateCallback. \param shutdown A function to be called right before an isolate is shutdown. See Dart_IsolateShutdownCallback. \param cleanup A function to be called after an isolate was shutdown. See Dart_IsolateCleanupCallback. \param cleanup_group A function to be called after an isolate group is shutdown. See Dart_IsolateGroupCleanupCallback. \param get_service_assets A function to be called by the service isolate when it requires the vmservice assets archive. See Dart_GetVMServiceAssetsArchive. \param code_observer An external code observer callback function. The observer can be invoked as early as during the Dart_Initialize() call.

Fields

version: i32vm_snapshot_data: *const u8vm_snapshot_instructions: *const u8create_group: Dart_IsolateGroupCreateCallbackinitialize_isolate: Dart_InitializeIsolateCallbackshutdown_isolate: Dart_IsolateShutdownCallbackcleanup_isolate: Dart_IsolateCleanupCallbackcleanup_group: Dart_IsolateGroupCleanupCallbackthread_exit: Dart_ThreadExitCallbackfile_open: Dart_FileOpenCallbackfile_read: Dart_FileReadCallbackfile_write: Dart_FileWriteCallbackfile_close: Dart_FileCloseCallbackentropy_source: Dart_EntropySourceget_service_assets: Dart_GetVMServiceAssetsArchivestart_kernel_isolate: boolcode_observer: *mut Dart_CodeObserver

Trait Implementations

impl Clone for Dart_InitializeParams[src]

impl Copy for Dart_InitializeParams[src]

impl Debug for Dart_InitializeParams[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.