pub struct WebWorkerOptionsBuilder { /* private fields */ }
Expand description
Builder for WebWorkerOptions
.
Implementations
sourceimpl WebWorkerOptionsBuilder
impl WebWorkerOptionsBuilder
pub fn bootstrap(&mut self, value: BootstrapOptions) -> &mut Self
pub fn unsafely_ignore_certificate_errors(
&mut self,
value: Option<Vec<String>>
) -> &mut Self
pub fn root_cert_store(&mut self, value: Option<RootCertStore>) -> &mut Self
pub fn seed(&mut self, value: Option<u64>) -> &mut Self
pub fn module_loader(&mut self, value: Rc<dyn ModuleLoader>) -> &mut Self
pub fn create_web_worker_cb(
&mut self,
value: Arc<CreateWebWorkerCb>
) -> &mut Self
pub fn preload_module_cb(&mut self, value: Arc<PreloadModuleCb>) -> &mut Self
pub fn format_js_error_fn(
&mut self,
value: Option<Arc<FormatJsErrorFn>>
) -> &mut Self
pub fn worker_type(&mut self, value: WebWorkerType) -> &mut Self
pub fn maybe_inspector_server(
&mut self,
value: Option<Arc<InspectorServer>>
) -> &mut Self
pub fn get_error_class_fn(&mut self, value: Option<GetErrorClassFn>) -> &mut Self
pub fn blob_store(&mut self, value: BlobStore) -> &mut Self
pub fn broadcast_channel(&mut self, value: InMemoryBroadcastChannel) -> &mut Self
pub fn compiled_wasm_module_store(
&mut self,
value: Option<CompiledWasmModuleStore>
) -> &mut Self
pub fn stdio(&mut self, value: Stdio) -> &mut Self
pub fn permissions(&mut self, value: Permissions) -> &mut Self
pub fn startup_snapshot(&mut self, value: Option<StartSnapshot>) -> &mut Self
sourcepub fn build(&self) -> Result<WebWorkerOptions, WebWorkerOptionsBuilderError>
pub fn build(&self) -> Result<WebWorkerOptions, WebWorkerOptionsBuilderError>
Trait Implementations
sourceimpl Clone for WebWorkerOptionsBuilder
impl Clone for WebWorkerOptionsBuilder
sourcefn clone(&self) -> WebWorkerOptionsBuilder
fn clone(&self) -> WebWorkerOptionsBuilder
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 WebWorkerOptionsBuilder
impl !Send for WebWorkerOptionsBuilder
impl !Sync for WebWorkerOptionsBuilder
impl Unpin for WebWorkerOptionsBuilder
impl !UnwindSafe for WebWorkerOptionsBuilder
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