Skip to main content

EnvironmentOptions

Struct EnvironmentOptions 

Source
pub struct EnvironmentOptions {
Show 132 fields pub abort_on_uncaught_exception: bool, pub conditions: Vec<String>, pub detect_module: bool, pub disable_sigusr1: bool, pub print_required_tla: bool, pub require_module: bool, pub dns_result_order: String, pub enable_source_maps: bool, pub experimental_addon_modules: bool, pub experimental_eventsource: bool, pub experimental_fetch: bool, pub experimental_websocket: bool, pub experimental_sqlite: bool, pub experimental_webstorage: bool, pub experimental_quic: bool, pub localstorage_file: String, pub experimental_global_navigator: bool, pub experimental_global_web_crypto: bool, pub experimental_wasm_modules: bool, pub experimental_import_meta_resolve: bool, pub input_type: String, pub entry_is_url: bool, pub permission: bool, pub allow_fs_read: Vec<String>, pub allow_fs_write: Vec<String>, pub allow_addons: bool, pub allow_child_process: bool, pub allow_net: Vec<String>, pub allow_wasi: bool, pub allow_worker_threads: bool, pub experimental_repl_await: bool, pub experimental_vm_modules: bool, pub async_context_frame: bool, pub expose_internals: bool, pub force_node_api_uncaught_exceptions_policy: bool, pub frozen_intrinsics: bool, pub heap_snapshot_near_heap_limit: i64, pub heapsnapshot_signal: String, pub network_family_autoselection: bool, pub network_family_autoselection_attempt_timeout: u64, pub max_http_header_size: u64, pub deprecation: bool, pub force_async_hooks_checks: bool, pub allow_native_addons: bool, pub global_search_paths: bool, pub warnings: bool, pub disable_warnings: Vec<String>, pub force_context_aware: bool, pub pending_deprecation: bool, pub preserve_symlinks: bool, pub preserve_symlinks_main: bool, pub prof_process: bool, pub cpu_prof_dir: String, pub cpu_prof_interval: u64, pub cpu_prof_name: String, pub cpu_prof: bool, pub experimental_network_inspection: bool, pub experimental_worker_inspection: bool, pub heap_prof_dir: String, pub heap_prof_name: String, pub heap_prof_interval: u64, pub heap_prof: bool, pub redirect_warnings: String, pub diagnostic_dir: String, pub env_file: String, pub optional_env_file: String, pub has_env_file_string: bool, pub test_runner: bool, pub test_runner_concurrency: u64, pub test_runner_timeout: u64, pub test_runner_coverage: bool, pub test_runner_force_exit: bool, pub test_coverage_branches: u64, pub test_coverage_functions: u64, pub test_coverage_lines: u64, pub test_runner_module_mocks: bool, pub test_runner_update_snapshots: bool, pub test_name_pattern: Vec<String>, pub test_reporter: Vec<String>, pub test_reporter_destination: Vec<String>, pub test_global_setup_path: String, pub test_only: bool, pub test_udp_no_try_send: bool, pub test_isolation: String, pub test_shard: String, pub test_skip_pattern: Vec<String>, pub coverage_include_pattern: Vec<String>, pub coverage_exclude_pattern: Vec<String>, pub throw_deprecation: bool, pub trace_deprecation: bool, pub trace_exit: bool, pub trace_sync_io: bool, pub trace_tls: bool, pub trace_uncaught: bool, pub trace_warnings: bool, pub trace_promises: bool, pub trace_env: bool, pub trace_env_js_stack: bool, pub trace_env_native_stack: bool, pub trace_require_module: String, pub extra_info_on_fatal_exception: bool, pub unhandled_rejections: String, pub userland_loaders: Vec<String>, pub verify_base_objects: bool, pub watch_mode: bool, pub watch_mode_report_to_parent: bool, pub watch_mode_preserve_output: bool, pub watch_mode_kill_signal: String, pub watch_mode_paths: Vec<String>, pub syntax_check_only: bool, pub has_eval_string: bool, pub eval_string: String, pub print_eval: bool, pub force_repl: bool, pub insecure_http_parser: bool, pub tls_min_v1_0: bool, pub tls_min_v1_1: bool, pub tls_min_v1_2: bool, pub tls_min_v1_3: bool, pub tls_max_v1_2: bool, pub tls_max_v1_3: bool, pub tls_keylog: String, pub preload_cjs_modules: Vec<String>, pub preload_esm_modules: Vec<String>, pub experimental_strip_types: bool, pub experimental_transform_types: bool, pub user_argv: Vec<String>, pub report_exclude_env: bool, pub report_exclude_network: bool, pub experimental_config_file_path: String, pub experimental_default_config_file: bool, pub debug_options: DebugOptions,
}

Fields§

§abort_on_uncaught_exception: bool§conditions: Vec<String>§detect_module: bool§disable_sigusr1: bool§print_required_tla: bool§require_module: bool§dns_result_order: String§enable_source_maps: bool§experimental_addon_modules: bool§experimental_eventsource: bool§experimental_fetch: bool§experimental_websocket: bool§experimental_sqlite: bool§experimental_webstorage: bool§experimental_quic: bool§localstorage_file: String§experimental_global_navigator: bool§experimental_global_web_crypto: bool§experimental_wasm_modules: bool§experimental_import_meta_resolve: bool§input_type: String§entry_is_url: bool§permission: bool§allow_fs_read: Vec<String>§allow_fs_write: Vec<String>§allow_addons: bool§allow_child_process: bool§allow_net: Vec<String>§allow_wasi: bool§allow_worker_threads: bool§experimental_repl_await: bool§experimental_vm_modules: bool§async_context_frame: bool§expose_internals: bool§force_node_api_uncaught_exceptions_policy: bool§frozen_intrinsics: bool§heap_snapshot_near_heap_limit: i64§heapsnapshot_signal: String§network_family_autoselection: bool§network_family_autoselection_attempt_timeout: u64§max_http_header_size: u64§deprecation: bool§force_async_hooks_checks: bool§allow_native_addons: bool§global_search_paths: bool§warnings: bool§disable_warnings: Vec<String>§force_context_aware: bool§pending_deprecation: bool§preserve_symlinks: bool§preserve_symlinks_main: bool§prof_process: bool§cpu_prof_dir: String§cpu_prof_interval: u64§cpu_prof_name: String§cpu_prof: bool§experimental_network_inspection: bool§experimental_worker_inspection: bool§heap_prof_dir: String§heap_prof_name: String§heap_prof_interval: u64§heap_prof: bool§redirect_warnings: String§diagnostic_dir: String§env_file: String§optional_env_file: String§has_env_file_string: bool§test_runner: bool§test_runner_concurrency: u64§test_runner_timeout: u64§test_runner_coverage: bool§test_runner_force_exit: bool§test_coverage_branches: u64§test_coverage_functions: u64§test_coverage_lines: u64§test_runner_module_mocks: bool§test_runner_update_snapshots: bool§test_name_pattern: Vec<String>§test_reporter: Vec<String>§test_reporter_destination: Vec<String>§test_global_setup_path: String§test_only: bool§test_udp_no_try_send: bool§test_isolation: String§test_shard: String§test_skip_pattern: Vec<String>§coverage_include_pattern: Vec<String>§coverage_exclude_pattern: Vec<String>§throw_deprecation: bool§trace_deprecation: bool§trace_exit: bool§trace_sync_io: bool§trace_tls: bool§trace_uncaught: bool§trace_warnings: bool§trace_promises: bool§trace_env: bool§trace_env_js_stack: bool§trace_env_native_stack: bool§trace_require_module: String§extra_info_on_fatal_exception: bool§unhandled_rejections: String§userland_loaders: Vec<String>§verify_base_objects: bool§watch_mode: bool§watch_mode_report_to_parent: bool§watch_mode_preserve_output: bool§watch_mode_kill_signal: String§watch_mode_paths: Vec<String>§syntax_check_only: bool§has_eval_string: bool§eval_string: String§print_eval: bool§force_repl: bool§insecure_http_parser: bool§tls_min_v1_0: bool§tls_min_v1_1: bool§tls_min_v1_2: bool§tls_min_v1_3: bool§tls_max_v1_2: bool§tls_max_v1_3: bool§tls_keylog: String§preload_cjs_modules: Vec<String>§preload_esm_modules: Vec<String>§experimental_strip_types: bool§experimental_transform_types: bool§user_argv: Vec<String>§report_exclude_env: bool§report_exclude_network: bool§experimental_config_file_path: String§experimental_default_config_file: bool§debug_options: DebugOptions

Implementations§

Source§

impl EnvironmentOptions

Source

pub fn check_options(&mut self, errors: &mut Vec<String>)

Trait Implementations§

Source§

impl Clone for EnvironmentOptions

Source§

fn clone(&self) -> EnvironmentOptions

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for EnvironmentOptions

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for EnvironmentOptions

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.