Type Alias rustyscript::RuntimeOptions
source · pub type RuntimeOptions = InnerRuntimeOptions;Expand description
Represents the set of options accepted by the runtime constructor
Aliased Type§
struct RuntimeOptions {
pub extensions: Vec<Extension>,
pub default_entrypoint: Option<String>,
pub timeout: Duration,
pub module_cache: Option<Box<dyn ModuleCacheProvider>>,
}Fields§
§extensions: Vec<Extension>A set of deno_core extensions to add to the runtime
default_entrypoint: Option<String>Function to use as entrypoint if the module does not provide one
timeout: DurationAmount of time to run for before killing the thread
module_cache: Option<Box<dyn ModuleCacheProvider>>