Struct deno_simple_runtime::worker::WorkerOptions
source · [−]pub struct WorkerOptions {Show 20 fields
pub bootstrap: BootstrapOptions,
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 js_error_create_fn: Option<Rc<JsErrorCreateFn>>,
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 main_module: Option<ModuleSpecifier>,
pub permissions: Permissions,
pub startup_snapshot: Option<StartSnapshot>,
}
Fields
bootstrap: BootstrapOptions
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>
js_error_create_fn: Option<Rc<JsErrorCreateFn>>
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>
main_module: Option<ModuleSpecifier>
permissions: Permissions
startup_snapshot: Option<StartSnapshot>
Trait Implementations
sourceimpl Clone for WorkerOptions
impl Clone for WorkerOptions
sourcefn clone(&self) -> WorkerOptions
fn clone(&self) -> WorkerOptions
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 more
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>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
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