Struct deno_runtime::BootstrapOptions
source · pub struct BootstrapOptions {Show 17 fields
pub args: Vec<String>,
pub cpu_count: usize,
pub log_level: WorkerLogLevel,
pub enable_op_summary_metrics: bool,
pub enable_testing_features: bool,
pub locale: String,
pub location: Option<ModuleSpecifier>,
pub no_color: bool,
pub is_tty: bool,
pub unstable: bool,
pub unstable_features: Vec<i32>,
pub user_agent: String,
pub inspect: bool,
pub has_node_modules_dir: bool,
pub maybe_binary_npm_command_name: Option<String>,
pub node_ipc_fd: Option<i64>,
pub disable_deprecated_api_warning: bool,
}
Expand description
Common bootstrap options for MainWorker & WebWorker
Fields§
§args: Vec<String>
Sets Deno.args
in JS runtime.
cpu_count: usize
§log_level: WorkerLogLevel
§enable_op_summary_metrics: bool
§enable_testing_features: bool
§locale: String
§location: Option<ModuleSpecifier>
§no_color: bool
Sets Deno.noColor
in JS runtime.
is_tty: bool
§unstable: bool
§unstable_features: Vec<i32>
§user_agent: String
§inspect: bool
§has_node_modules_dir: bool
§maybe_binary_npm_command_name: Option<String>
§node_ipc_fd: Option<i64>
§disable_deprecated_api_warning: bool
Implementations§
Trait Implementations§
source§impl Clone for BootstrapOptions
impl Clone for BootstrapOptions
source§fn clone(&self) -> BootstrapOptions
fn clone(&self) -> BootstrapOptions
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Send for BootstrapOptions
impl Sync for BootstrapOptions
impl RefUnwindSafe for BootstrapOptions
impl Unpin for BootstrapOptions
impl UnwindSafe for BootstrapOptions
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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