pub struct RendererConfig { /* private fields */ }Implementations§
Source§impl RendererConfig
impl RendererConfig
Sourcepub fn production(
assets: &AssetManifest,
renderer: &RendererManifest,
renderer_root: impl Into<PathBuf>,
) -> Result<Self, AssetManifestError>
pub fn production( assets: &AssetManifest, renderer: &RendererManifest, renderer_root: impl Into<PathBuf>, ) -> Result<Self, AssetManifestError>
Build a production renderer configuration from matching Vite
manifests. The renderer entry is resolved below renderer_root and the
worker handshake is pinned to the client asset version and contract.
§Errors
Returns an error for invalid manifests or contract drift between the browser and renderer builds.
pub fn node(entrypoint: impl Into<PathBuf>) -> Self
pub fn command( program: impl Into<PathBuf>, args: impl IntoIterator<Item = OsString>, ) -> Self
pub const fn with_timeout(self, timeout: Duration) -> Self
pub fn with_workers(self, workers: usize) -> Self
pub fn with_contract_hash(self, contract_hash: impl Into<String>) -> Self
pub fn with_asset_version(self, asset_version: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for RendererConfig
impl Clone for RendererConfig
Source§fn clone(&self) -> RendererConfig
fn clone(&self) -> RendererConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RendererConfig
impl RefUnwindSafe for RendererConfig
impl Send for RendererConfig
impl Sync for RendererConfig
impl Unpin for RendererConfig
impl UnsafeUnpin for RendererConfig
impl UnwindSafe for RendererConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more