Struct deno_simple_runtime::worker::WorkerOptionsBuilder
source · [−]pub struct WorkerOptionsBuilder { /* private fields */ }
Expand description
Builder for WorkerOptions
.
Implementations
sourceimpl WorkerOptionsBuilder
impl WorkerOptionsBuilder
pub fn bootstrap(self, value: BootstrapOptions) -> Self
pub fn unsafely_ignore_certificate_errors(
self,
value: Option<Vec<String>>
) -> Self
pub fn root_cert_store(self, value: Option<RootCertStore>) -> Self
pub fn seed(self, value: Option<u64>) -> Self
pub fn module_loader(self, value: Rc<dyn ModuleLoader>) -> Self
pub fn create_web_worker_cb(self, value: Arc<CreateWebWorkerCb>) -> Self
pub fn web_worker_preload_module_cb(self, value: Arc<PreloadModuleCb>) -> Self
pub fn format_js_error_fn(self, value: Option<Arc<FormatJsErrorFn>>) -> Self
pub fn js_error_create_fn(self, value: Option<Rc<JsErrorCreateFn>>) -> Self
pub fn maybe_inspector_server(self, value: Option<Arc<InspectorServer>>) -> Self
pub fn should_break_on_first_statement(self, value: bool) -> Self
pub fn get_error_class_fn(self, value: Option<GetErrorClassFn>) -> Self
pub fn origin_storage_dir(self, value: Option<PathBuf>) -> Self
pub fn blob_store(self, value: BlobStore) -> Self
pub fn broadcast_channel(self, value: InMemoryBroadcastChannel) -> Self
pub fn compiled_wasm_module_store(
self,
value: Option<CompiledWasmModuleStore>
) -> Self
pub fn stdio(self, value: Stdio) -> Self
pub fn permissions(self, value: Permissions) -> Self
pub fn startup_snapshot(self, value: Option<StartSnapshot>) -> Self
pub fn runtime_options_callback(
self,
value: Option<RuntimeOptionsCallback>
) -> Self
sourcepub fn build(self) -> Result<WorkerOptions, WorkerOptionsBuilderError>
pub fn build(self) -> Result<WorkerOptions, WorkerOptionsBuilderError>
sourceimpl WorkerOptionsBuilder
impl WorkerOptionsBuilder
pub fn main_module(self, value: Option<impl AsRef<str>>) -> Self
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for WorkerOptionsBuilder
impl !Send for WorkerOptionsBuilder
impl !Sync for WorkerOptionsBuilder
impl Unpin for WorkerOptionsBuilder
impl !UnwindSafe for WorkerOptionsBuilder
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