pub struct BootstrapOptions {
Show 13 fields pub args: Vec<String>, pub cpu_count: usize, pub debug_flag: bool, pub enable_testing_features: bool, pub locale: String, pub location: Option<ModuleSpecifier>, pub no_color: bool, pub is_tty: bool, pub runtime_version: String, pub ts_version: String, pub unstable: bool, pub user_agent: String, pub inspect: bool,
}
Expand description

Common bootstrap options for MainWorker & WebWorker

Fields

args: Vec<String>

Sets Deno.args in JS runtime.

cpu_count: usizedebug_flag: boolenable_testing_features: boollocale: Stringlocation: Option<ModuleSpecifier>no_color: bool

Sets Deno.noColor in JS runtime.

is_tty: boolruntime_version: String

Sets Deno.version.deno in JS runtime.

ts_version: String

Sets Deno.version.typescript in JS runtime.

unstable: booluser_agent: Stringinspect: bool

Implementations

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

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

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more