Struct deno_runtime::worker::WorkerOptions
source · [−]pub struct WorkerOptions {Show 20 fields
pub bootstrap: BootstrapOptions,
pub extensions: Vec<Extension>,
pub unsafely_ignore_certificate_errors: Option<Vec<String>>,
pub root_cert_store: Option<RootCertStore>,
pub user_agent: String,
pub seed: Option<u64>,
pub module_loader: Rc<dyn ModuleLoader>,
pub create_web_worker_cb: Arc<CreateWebWorkerCb>,
pub web_worker_preload_module_cb: Arc<PreloadModuleCb>,
pub format_js_error_fn: Option<Arc<FormatJsErrorFn>>,
pub source_map_getter: Option<Box<dyn SourceMapGetter>>,
pub maybe_inspector_server: Option<Arc<InspectorServer>>,
pub should_break_on_first_statement: bool,
pub get_error_class_fn: Option<GetErrorClassFn>,
pub origin_storage_dir: Option<PathBuf>,
pub blob_store: BlobStore,
pub broadcast_channel: InMemoryBroadcastChannel,
pub shared_array_buffer_store: Option<SharedArrayBufferStore>,
pub compiled_wasm_module_store: Option<CompiledWasmModuleStore>,
pub stdio: Stdio,
}
Fields
bootstrap: BootstrapOptions
extensions: Vec<Extension>
unsafely_ignore_certificate_errors: Option<Vec<String>>
root_cert_store: Option<RootCertStore>
user_agent: String
seed: Option<u64>
module_loader: Rc<dyn ModuleLoader>
create_web_worker_cb: Arc<CreateWebWorkerCb>
web_worker_preload_module_cb: Arc<PreloadModuleCb>
format_js_error_fn: Option<Arc<FormatJsErrorFn>>
source_map_getter: Option<Box<dyn SourceMapGetter>>
maybe_inspector_server: Option<Arc<InspectorServer>>
should_break_on_first_statement: bool
get_error_class_fn: Option<GetErrorClassFn>
origin_storage_dir: Option<PathBuf>
blob_store: BlobStore
broadcast_channel: InMemoryBroadcastChannel
compiled_wasm_module_store: Option<CompiledWasmModuleStore>
stdio: Stdio
Auto Trait Implementations
impl !RefUnwindSafe for WorkerOptions
impl !Send for WorkerOptions
impl !Sync for WorkerOptions
impl Unpin for WorkerOptions
impl !UnwindSafe for WorkerOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more