Struct deno_runtime::BootstrapOptions
source · 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: usize
debug_flag: bool
enable_testing_features: bool
locale: String
location: Option<ModuleSpecifier>
no_color: bool
Sets Deno.noColor
in JS runtime.
is_tty: bool
runtime_version: String
Sets Deno.version.deno
in JS runtime.
ts_version: String
Sets Deno.version.typescript
in JS runtime.
unstable: bool
user_agent: String
inspect: bool
Implementations
Trait Implementations
sourceimpl Clone for BootstrapOptions
impl Clone for BootstrapOptions
sourcefn clone(&self) -> BootstrapOptions
fn clone(&self) -> BootstrapOptions
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations
impl RefUnwindSafe for BootstrapOptions
impl Send for BootstrapOptions
impl Sync for BootstrapOptions
impl Unpin for BootstrapOptions
impl UnwindSafe for BootstrapOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more